diff options
| author | WerWolv <werwolv98@gmail.com> | 2022-04-13 22:19:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-13 22:19:48 +0200 |
| commit | c084abecfc039fd5bdfcb08d7b56c66ddb10839e (patch) | |
| tree | 1fa4d385466b9028a71092ad3d82cfa45cbada12 /dist/install_nightly.sh | |
| parent | f685eeb4207e972d98d5e1f92ec0a74cf38a3f85 (diff) | |
| download | decky-loader-c084abecfc039fd5bdfcb08d7b56c66ddb10839e.tar.gz decky-loader-c084abecfc039fd5bdfcb08d7b56c66ddb10839e.zip | |
Fixed install script root access
Diffstat (limited to 'dist/install_nightly.sh')
| -rw-r--r-- | dist/install_nightly.sh | 7 |
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 |
