summaryrefslogtreecommitdiff
path: root/dist/install_release.sh
diff options
context:
space:
mode:
authorWerWolv <werwolv98@gmail.com>2022-04-21 17:46:53 +0200
committerGitHub <noreply@github.com>2022-04-21 17:46:53 +0200
commit604006a7cb4ec90117b125c9e229e4e366c8ebb6 (patch)
tree5eb39c05895409e60b65e7ae8b60d214a3ca2f3f /dist/install_release.sh
parent7aa4e9106a57b95014bc93a01adf6085f4a5329f (diff)
downloaddecky-loader-604006a7cb4ec90117b125c9e229e4e366c8ebb6.tar.gz
decky-loader-604006a7cb4ec90117b125c9e229e4e366c8ebb6.zip
Fixed root check
Diffstat (limited to 'dist/install_release.sh')
-rw-r--r--dist/install_release.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/dist/install_release.sh b/dist/install_release.sh
index 270fba68..114712f6 100644
--- a/dist/install_release.sh
+++ b/dist/install_release.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 release..."