From a6846781ed5c3a6bfd5b8e58497d8991eb7341f5 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 26 Sep 2023 12:53:59 +0200 Subject: [PATCH] fix sudo in script --- arch-graphical-install-auto.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch-graphical-install-auto.sh b/arch-graphical-install-auto.sh index de9940a..3f3c33e 100755 --- a/arch-graphical-install-auto.sh +++ b/arch-graphical-install-auto.sh @@ -4,7 +4,7 @@ set -ex if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" 1>&2 - sudo "$@" + sudo "${0}" "$@" exit 0 fi echo "Als root Angemeldet"