commit daff9e1ba11bdf1d6fe55eeeda45dd4bb2918874 Author: rl1987 rl1987@sdf.lonestar.org Date: Sat Feb 2 17:14:49 2019 +0200
Fix shellcheck warning in fuzz_static_testcases.sh --- changes/ticket29059 | 3 +++ src/test/fuzz_static_testcases.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/changes/ticket29059 b/changes/ticket29059 new file mode 100644 index 000000000..d47d0e2a3 --- /dev/null +++ b/changes/ticket29059 @@ -0,0 +1,3 @@ + o Code simplification and refactoring (shell scripts): + - Fix shellcheck warnings in fuzz_static_testcases.sh. Resolves ticket + 29059. diff --git a/src/test/fuzz_static_testcases.sh b/src/test/fuzz_static_testcases.sh index f7b3adffb..b88335240 100755 --- a/src/test/fuzz_static_testcases.sh +++ b/src/test/fuzz_static_testcases.sh @@ -14,7 +14,7 @@ fi
for fuzzer in "${builddir:-.}"/src/test/fuzz/fuzz-* ; do - f=`basename $fuzzer` + f=$(basename "$fuzzer") case="${f#fuzz-}" if [ -d "${TOR_FUZZ_CORPORA}/${case}" ]; then echo "Running tests for ${case}"