From 11d2848b6c4048d5789597d69571db575b56ae6c Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 30 Nov 2024 12:24:44 +0100 Subject: [PATCH] fix non stable release comparison --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 9d8c7a9..9dfd056 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -17,7 +17,7 @@ export COMPARE_IMAGE=$(sed -n "${COMPARE_HAYSTACK}" /usr/src/dotclear/release.js export VERSION_IMAGE=$(sed -n "s/^\s*\"release_version\":\s*\"\(.*\)\",/\1/p" /usr/src/dotclear/release.json) # Simple versions comparison function that works with Dotclear stable versioning -function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; } +function version { echo "$@" | awk -F. '{ printf("%d%08d%04d%03d\n", $1,$2,$3,$4); }'; } # Update Docker structure echo >&2 "Updating Docker structure..."