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:
parent
cc82314c97
commit
ee3f02eff5
@ -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 "-----------------------------------------"
|
||||
|
Loading…
Reference in New Issue
Block a user