EUID didn't work when sourcing file in docker run -d

* alternative syntax using common `id` command should be shared amongst supported OSs
This commit is contained in:
diginc 2016-09-13 07:33:53 -05:00
parent edf81a232d
commit 38c9434c62

View file

@ -42,7 +42,7 @@ c=$(( columns / 2 ))
######## FIRST CHECK ########
# Must be root to install
echo ":::"
if [[ $EUID -eq 0 ]];then
if [ `id -u` -eq 0 ];then
echo "::: You are root."
else
echo "::: sudo will be used for the install."