From 714e72e76ba725d65840ff6e18c224acf59d6035 Mon Sep 17 00:00:00 2001 From: jash Date: Sat, 8 Dec 2018 20:39:44 +0100 Subject: [PATCH] only warn user if run as user option is set :-/ --- dist/setup.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dist/setup.sh b/dist/setup.sh index 5ac5809..449b304 100755 --- a/dist/setup.sh +++ b/dist/setup.sh @@ -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