fix(aur): Use vercmp

This commit is contained in:
Michael Carlberg 2017-01-14 20:44:41 +01:00
parent 73df20dc75
commit 084ff6d455
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ EOF
}
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 is instead added by the user, for example: