about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-20 13:37:22 +0200
committerGitHub <noreply@github.com>2020-06-20 13:37:22 +0200
commit341e17bf5364670f1563d7964eb821c3b4a5ccb6 (patch)
treeaf07adbb3b84c95a6c4c252d31fd101af563e5b1
parenteb4561e3a67231e34f772bdc6b0175e385692d50 (diff)
parent990b234067888bcfd83961e3112e734a6a5548b1 (diff)
downloadafl++-341e17bf5364670f1563d7964eb821c3b4a5ccb6.tar.gz
Merge pull request #418 from jonasmollerlarsen/dev
Fix when env. PATH contains spaces
-rwxr-xr-xtest/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.sh b/test/test.sh
index 921e2087..4430b5ac 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -86,7 +86,7 @@ export AFL_LLVM_INSTRUMENT=AFL
 
 # on OpenBSD we need to work with llvm from /usr/local/bin
 test -e /usr/local/bin/opt && {
-  export PATH=/usr/local/bin:${PATH}
+  export PATH="/usr/local/bin:${PATH}"
 }
 # on MacOS X we prefer afl-clang over afl-gcc, because
 # afl-gcc does not work there
@@ -108,7 +108,7 @@ RESET="\\033[0m"
 
 MEM_LIMIT=none
 
-export PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
+export PATH="${PATH}:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
 
 $ECHO "${RESET}${GREY}[*] starting afl++ test framework ..."