summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/install_nightly.sh7
1 files changed, 2 insertions, 5 deletions
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