diff --git a/test.sh b/test.sh index 98d351fcc283147034ce9b006c905bbb31f2d186..2b45b64346e499a9966557b7f09dafc592eee7ad 100755 --- a/test.sh +++ b/test.sh @@ -20,7 +20,9 @@ if pgrep -lf sshuttle > /dev/null ; then exit 1 fi -if groups $USER | grep &>/dev/null '\bdocker\b'; then +if [[ $NO_SUDO || -n "$CIRCLECI" ]]; then + CAPTAIN="captain" +elif groups $USER | grep &>/dev/null '\bdocker\b'; then CAPTAIN="captain" else CAPTAIN="sudo captain"