Call original pkexec in case there are no arguments.

This commit is contained in:
Patrick Schleizer 2019-10-22 08:54:17 -04:00
parent 9c8f678cb9
commit a1154170c9
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -72,7 +72,11 @@ done
if [[ "$@" = "" ]]; then
## Call original pkexec in case there are no arguments.
pkexec.security-misc-orig "$original_args"
if [[ "$original_args" = "" ]]; then
pkexec.security-misc-orig
else
pkexec.security-misc-orig "$original_args"
fi
exit $?
fi