From dc91da0fb509cf8c16213128fc88e3427f115183 Mon Sep 17 00:00:00 2001 From: Mirco <mirco.nasuti@chuv.ch> Date: Mon, 9 Oct 2017 23:16:14 +0200 Subject: [PATCH] fix test.sh for CircleCI --- test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 98d351fcc..2b45b6434 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" -- GitLab