only warn user if run as user option is set :-/

This commit is contained in:
jash
2018-12-08 20:39:44 +01:00
committed by kexkey
parent 91b3f5323d
commit 714e72e76b

10
dist/setup.sh vendored
View File

@@ -530,14 +530,12 @@ sanity_checks() {
local OS=$(uname -s)
if [[ $OS == 'Darwin' ]]; then
echo " Run as user option is not supported on OSX."
echo " Please run start.sh later as the user you are running this setup utility under."
RUN_AS_USER=$USER
fi
if [[ ''$RUN_AS_USER == '' ]]; then
RUN_AS_USER=$USER
elif [[ $OS == 'Darwin' ]]; then
echo " Run as user option is not supported on OSX."
echo " Please run start.sh later as the user you are running this setup utility under."
RUN_AS_USER=$USER
fi
local sudo=0