From 604006a7cb4ec90117b125c9e229e4e366c8ebb6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 21 Apr 2022 17:46:53 +0200 Subject: Fixed root check --- dist/install_release.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'dist') 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..." -- cgit v1.2.3