fix sudo in script
This commit is contained in:
parent
f01405ba9e
commit
a6846781ed
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue