fix non stable release comparison

This commit is contained in:
Jean-Christian Denis 2024-11-30 12:24:44 +01:00
parent 61f879dd29
commit 11d2848b6c
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -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) 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 # 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 # Update Docker structure
echo >&2 "Updating Docker structure..." echo >&2 "Updating Docker structure..."