mirror of
https://github.com/byReqz/stocheck.git
synced 2024-11-14 19:53:15 +00:00
fixed updating without root
This commit is contained in:
parent
cc82314c97
commit
ee3f02eff5
@ -8,7 +8,7 @@ if [[ ! "$0" =~ "bash" ]];then
|
|||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ $(whoami) != "root" ]];then
|
if [[ $(whoami) != "root" ]] && [[ "$1" != "-u" ]];then
|
||||||
echo "-----------------------------------------"
|
echo "-----------------------------------------"
|
||||||
echo "ERROR: This script should be run as root."
|
echo "ERROR: This script should be run as root."
|
||||||
echo "-----------------------------------------"
|
echo "-----------------------------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user