summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerWolv <werwolv98@gmail.com>2022-04-13 22:19:48 +0200
committerGitHub <noreply@github.com>2022-04-13 22:19:48 +0200
commitc084abecfc039fd5bdfcb08d7b56c66ddb10839e (patch)
tree1fa4d385466b9028a71092ad3d82cfa45cbada12
parentf685eeb4207e972d98d5e1f92ec0a74cf38a3f85 (diff)
downloaddecky-loader-c084abecfc039fd5bdfcb08d7b56c66ddb10839e.tar.gz
decky-loader-c084abecfc039fd5bdfcb08d7b56c66ddb10839e.zip
Fixed install script root access
-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