From 084ff6d4556cbf9d53017cb126ad7b411b2c1e16 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Sat, 14 Jan 2017 20:44:41 +0100 Subject: [PATCH] fix(aur): Use vercmp --- contrib/polybar.aur/polybar.install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/polybar.aur/polybar.install b/contrib/polybar.aur/polybar.install index e34534e8..3fa42106 100644 --- a/contrib/polybar.aur/polybar.install +++ b/contrib/polybar.aur/polybar.install @@ -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: