Fixed install script root access

This commit is contained in:
WerWolv
2022-04-13 22:19:48 +02:00
committed by GitHub
parent f685eeb420
commit c084abecfc

View File

@@ -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
systemctl enable plugin_loader