diff --git a/docker/imagetags b/docker/imagetags index 839b0d3..1a82719 100755 --- a/docker/imagetags +++ b/docker/imagetags @@ -20,7 +20,7 @@ HELP fi 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" ] then