1
0
mirror of https://github.com/byReqz/stocheck.git synced 2024-12-25 10:31:48 +00:00

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

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