pkexec fix

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
shenmo 2023-12-11 08:09:11 +00:00 committed by Gitee
parent 6c853b2bec
commit 0f293864b6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [ "$UID" = "0" ];then
pkexec $@
$@
else
host-spawn pkexec bookworm-run $@
fi