Change gui if-statement
This commit is contained in:
parent
65071a0ec3
commit
65c4180a81
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue