From: Stefan Junker Date: Fri, 20 May 2016 09:33:23 +0000 (+0200) Subject: test: fix bash variable escaping in sudo command X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=232d7c095d5f5f08e07bad06bdc6ae9369380b78;p=cni.git test: fix bash variable escaping in sudo command --- diff --git a/test b/test index 634633f..6db93b7 100755 --- a/test +++ b/test @@ -35,7 +35,7 @@ TEST=${split[@]/#/${REPO_PATH}/} echo -n "Running tests " function testrun { - sudo -E bash -c "umask 0; PATH=\$GOBIN:\$GOROOT/bin:\$PATH go test -covermode set $@" + sudo -E bash -c "umask 0; PATH=$GOROOT/bin:$GOBIN:$PATH go test -covermode set $@" } if [ ! -z "${COVERALLS}" ]; then echo "with coverage profile generation..."