summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2019-04-08 11:16:45 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2019-04-08 11:16:45 +0300
commit0e0a0b9802e7e7bf192df9c93f257913e926033a (patch)
tree4f2e7ba9ad875cca8c9d1d5217363809bd8ba10f
parent7741b21d0e3afbfc6d60a852fce6992724c4ae71 (diff)
downloadtor-0e0a0b9802e7e7bf192df9c93f257913e926033a.tar.gz
tor-0e0a0b9802e7e7bf192df9c93f257913e926033a.zip
Fix SC2006 in minimize.sh
-rw-r--r--changes/ticket300793
-rwxr-xr-xsrc/test/fuzz/minimize.sh2
2 files changed, 4 insertions, 1 deletions
diff --git a/changes/ticket30079 b/changes/ticket30079
new file mode 100644
index 0000000000..56b88e7f53
--- /dev/null
+++ b/changes/ticket30079
@@ -0,0 +1,3 @@
+ o Code simplification and refactoring (shell scripts):
+ - Fix shellcheck warning SC2006 in src/test/fuzz/minimize.sh. Resolves
+ issue 30079.
diff --git a/src/test/fuzz/minimize.sh b/src/test/fuzz/minimize.sh
index 87d3dda13c..ce43812bb8 100755
--- a/src/test/fuzz/minimize.sh
+++ b/src/test/fuzz/minimize.sh
@@ -7,7 +7,7 @@ if [ ! -d "$1" ] ; then
exit 1
fi
-which=`basename "$1"`
+which=$(basename "$1")
mkdir "$1.out"
afl-cmin -i "$1" -o "$1.out" -m none "./src/test/fuzz/fuzz-${which}"