1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wekan_ynh.git synced 2024-09-03 20:36:09 +02:00

Improve ynh_version_gt helper (it doesn't properly rank the part after ~)

This commit is contained in:
Alexandre Aubin 2018-07-01 17:29:26 +00:00
parent 0ab0735570
commit 4f2edf1318

View file

@ -210,4 +210,4 @@ EOF
chmod +x "/etc/cron.daily/node_update"
}
ynh_version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }
ynh_version_gt() { dpkg --compare-versions "$1" gt "$2" }