fix(aur): Strip all non-digits when comparing versions

This commit is contained in:
Michael Carlberg 2017-01-14 19:57:02 +01:00
parent a964e3bc7d
commit 73df20dc75

View File

@ -12,7 +12,7 @@ EOF
} }
post_upgrade() { post_upgrade() {
(( ${2//./} <= 251 )) && cat << EOF (( ${2//[^0-9]/} <= 2511 )) && 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: