From 7013e9019c7b781a5f4b842e52c1c5165595c83c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 11 Jan 2021 10:45:07 +0100 Subject: [PATCH] Be sure to have version sorted! --- docker/imagetags | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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