test: fix bash variable escaping in sudo command
authorStefan Junker <mail@stefanjunker.de>
Fri, 20 May 2016 09:33:23 +0000 (11:33 +0200)
committerStefan Junker <mail@stefanjunker.de>
Fri, 20 May 2016 23:48:26 +0000 (01:48 +0200)
test

diff --git a/test b/test
index 634633f..6db93b7 100755 (executable)
--- 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..."