From 73df20dc752c74b391825acc5cce5ab8c35ee1d0 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Sat, 14 Jan 2017 19:57:02 +0100 Subject: [PATCH] fix(aur): Strip all non-digits when comparing versions --- contrib/polybar.aur/polybar.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/polybar.aur/polybar.install b/contrib/polybar.aur/polybar.install index c46ee3c7..e34534e8 100644 --- a/contrib/polybar.aur/polybar.install +++ b/contrib/polybar.aur/polybar.install @@ -12,7 +12,7 @@ EOF } post_upgrade() { - (( ${2//./} <= 251 )) && cat << EOF + (( ${2//[^0-9]/} <= 2511 )) && cat << EOF The % suffix has been removed from percentage tokens. The suffix is instead added by the user, for example: