fixed updating without root

This commit is contained in:
Nils 2021-03-11 15:12:05 +01:00
parent cc82314c97
commit ee3f02eff5
Signed by: byreqz
GPG Key ID: 396A62D7D436749E
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ if [[ ! "$0" =~ "bash" ]];then
echo ""
fi
fi
if [[ $(whoami) != "root" ]];then
if [[ $(whoami) != "root" ]] && [[ "$1" != "-u" ]];then
echo "-----------------------------------------"
echo "ERROR: This script should be run as root."
echo "-----------------------------------------"