Be sure to have version sorted!
This commit is contained in:
parent
e02b666049
commit
7013e9019c
|
@ -20,7 +20,7 @@ HELP
|
||||||
fi
|
fi
|
||||||
|
|
||||||
image="$1"
|
image="$1"
|
||||||
tags=$(wget -q https://registry.hub.docker.com/v1/repositories/"${image}"/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}')
|
tags=$(wget -q https://registry.hub.docker.com/v1/repositories/"${image}"/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}' | sort --version-sort)
|
||||||
|
|
||||||
if [ -n "$2" ]
|
if [ -n "$2" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue