scripts: Following polkit versioning scheme change

Signed-off-by:  Attila Body <attila.body@gmail.com>
This commit is contained in:
Attila BODY 2022-07-17 15:13:01 +02:00 committed by Eric Callahan
parent 16327ff551
commit cd6db1ee75
1 changed files with 1 additions and 1 deletions

View File

@ -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