check for root

This commit is contained in:
Michael Stanclift 2020-06-03 15:43:36 -05:00
parent 99e04ffa08
commit 0ff690a2f0

View File

@ -1353,6 +1353,16 @@ function echo_need {
MESSAGE="Evaluating Arguments" MESSAGE="Evaluating Arguments"
echo_stat echo_stat
if [ ! "$EUID" -ne 0 ]
then
echo_fail
MESSAGE="Root User Detected"
echo_warn
exit_nochange
fi
case $# in case $# in
0) 0)