Change gui if-statement

This commit is contained in:
Quad 2021-05-22 23:33:08 +02:00
parent 65071a0ec3
commit 65c4180a81
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ set_pl () {
fi
if [ "$EUID" -eq 0 ]; then
echo $(w_to_uw $2) > $pl_path
elif [ $gui_used == 1 ]; then
elif ! [ -z $gui_used ]; then
sudo -A bash -c "echo $(w_to_uw $2) > ${pl_path}"
else
sudo bash -c "echo $(w_to_uw $2) > ${pl_path}"