From ee3f02eff56e655708c7e52c85ca6cba185e3126 Mon Sep 17 00:00:00 2001 From: Nils Date: Thu, 11 Mar 2021 15:12:05 +0100 Subject: [PATCH] fixed updating without root --- stocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stocheck.sh b/stocheck.sh index d48f4f0..be35a64 100755 --- a/stocheck.sh +++ b/stocheck.sh @@ -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 "-----------------------------------------"