From 7ba26b72cbd86f2c8a1e8c276282e14ed18fcbb8 Mon Sep 17 00:00:00 2001 From: Joshua Mesilane Date: Sat, 18 Apr 2026 17:39:35 +1000 Subject: [PATCH] Fix for polkit version detection --- manage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manage.sh b/manage.sh index 5858372..e5a4161 100755 --- a/manage.sh +++ b/manage.sh @@ -402,7 +402,7 @@ install_repeater() { # Work out which version of polkit is installed POLKIT_VERSION=`pkaction --version | awk '{print $NF}'` - if (( $(echo "$POLKIT_VERSION > 0.105"| bc -l) )); then + if [ `echo "$POLKIT_VERSION > 0.105"| bc -l` == '1' ]; then echo "Polkit 0.106 or greater detected, using rules file" echo ">>> Configuring polkit for service management..." mkdir -p /etc/polkit-1/rules.d @@ -771,7 +771,7 @@ upgrade_repeater() { # Configure polkit for passwordless service restart POLKIT_VERSION=`pkaction --version | awk '{print $NF}'` - if (( $(echo "$POLKIT_VERSION > 0.105"| bc -l) )); then + if [ `echo "$POLKIT_VERSION > 0.105"| bc -l` == "1" ]; then echo "Polkit 0.106 or greater detected, using rules file" echo ">>> Configuring polkit for service management..." mkdir -p /etc/polkit-1/rules.d