From c084abecfc039fd5bdfcb08d7b56c66ddb10839e Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 13 Apr 2022 22:19:48 +0200 Subject: Fixed install script root access --- dist/install_nightly.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'dist') diff --git a/dist/install_nightly.sh b/dist/install_nightly.sh index 55df435b..2189bf2a 100644 --- a/dist/install_nightly.sh +++ b/dist/install_nightly.sh @@ -1,9 +1,6 @@ #!/bin/sh -if [ "$(whoami)" != "root" ]; then - su -c "$0 $*" - exit -fi +[ "$UID" -eq 0 ] || exec sudo "$0" "$@" echo "Installing Steam Deck Plugin Loader nightly..." @@ -45,4 +42,4 @@ WantedBy=multi-user.target EOM systemctl daemon-reload systemctl start plugin_loader -systemctl enable plugin_loader \ No newline at end of file +systemctl enable plugin_loader -- cgit v1.2.3