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..."