From 447edf11684f9c09b49f1cfdfa9df3fd36cb18cf Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 30 Nov 2024 13:49:30 +0100 Subject: [PATCH] fix non stable release comparison (again) --- docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 9dfd056..3d364d9 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -16,8 +16,8 @@ fi export COMPARE_IMAGE=$(sed -n "${COMPARE_HAYSTACK}" /usr/src/dotclear/release.json) 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%08d%04d%03d\n", $1,$2,$3,$4); }'; } +# Simple versions comparison function that fits all releases +function version { echo "$@" | awk -F. '{ printf("%d%04d%03d\n", $1,$2,$3); }'; } # Update Docker structure echo >&2 "Updating Docker structure..."