fix(aur): Use vercmp

This commit is contained in:
Michael Carlberg 2017-01-14 20:44:41 +01:00
parent 73df20dc75
commit 084ff6d455

View File

@ -12,7 +12,8 @@ EOF
} }
post_upgrade() { post_upgrade() {
(( ${2//[^0-9]/} <= 2511 )) && cat << EOF [ "$(vercmp "$2" "2.5.1-1")" = "-1" ] || exit 0
cat << EOF
The % suffix has been removed from percentage tokens. The % suffix has been removed from percentage tokens.
The suffix is instead added by the user, for example: The suffix is instead added by the user, for example: