diff --git a/scripts/set-policykit-rules.sh b/scripts/set-policykit-rules.sh index 4fb78ad..9ec6afe 100755 --- a/scripts/set-policykit-rules.sh +++ b/scripts/set-policykit-rules.sh @@ -45,7 +45,7 @@ add_polkit_rules() echo "PolicyKit not installed" exit 1 fi - POLKIT_VERSION="$( pkaction --version | grep -Po "(\d?\.\d+)" )" + POLKIT_VERSION="$( pkaction --version | grep -Po "(\d+\.?\d*)" )" report_status "PolicyKit Version ${POLKIT_VERSION} Detected" if [ "$POLKIT_VERSION" = "0.105" ]; then # install legacy pkla file