fix sudo in script

This commit is contained in:
Simon Rieger 2023-09-26 12:53:59 +02:00
parent f01405ba9e
commit a6846781ed

View file

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