fix non stable release comparison (again)
This commit is contained in:
parent
11d2848b6c
commit
447edf1168
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ fi
|
||||||
export COMPARE_IMAGE=$(sed -n "${COMPARE_HAYSTACK}" /usr/src/dotclear/release.json)
|
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)
|
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 fits all releases
|
||||||
function version { echo "$@" | awk -F. '{ printf("%d%08d%04d%03d\n", $1,$2,$3,$4); }'; }
|
function version { echo "$@" | awk -F. '{ printf("%d%04d%03d\n", $1,$2,$3); }'; }
|
||||||
|
|
||||||
# Update Docker structure
|
# Update Docker structure
|
||||||
echo >&2 "Updating Docker structure..."
|
echo >&2 "Updating Docker structure..."
|
||||||
|
|
Loading…
Reference in a new issue