aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2019-04-15 12:13:35 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2019-04-15 12:13:35 +0300
commit55b4f02ba6cbbd4cae942a9e84e48e237d8e38aa (patch)
tree08519ce92e4fa1dccca05963850d4671ea188af8 /src/test/fuzz
parent7b386f2356c9c706e9432b19058dee8147030056 (diff)
downloadtor-55b4f02ba6cbbd4cae942a9e84e48e237d8e38aa.tar.gz
tor-55b4f02ba6cbbd4cae942a9e84e48e237d8e38aa.zip
Fix shellcheck warnings in fixup_filenames.sh
Diffstat (limited to 'src/test/fuzz')
-rwxr-xr-xsrc/test/fuzz/fixup_filenames.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/fuzz/fixup_filenames.sh b/src/test/fuzz/fixup_filenames.sh
index 68efc1abc5..f730d532a5 100755
--- a/src/test/fuzz/fixup_filenames.sh
+++ b/src/test/fuzz/fixup_filenames.sh
@@ -8,9 +8,9 @@ if [ ! -d "$1" ] ; then
fi
for fn in "$1"/* ; do
- prev=`basename "$fn"`
- post=`sha256sum "$fn" | sed -e 's/ .*//;'`
- if [ "$prev" == "$post" ] ; then
+ prev=$(basename "$fn")
+ post=$(sha256sum "$fn" | sed -e 's/ .*//;')
+ if [ "$prev" = "$post" ] ; then
echo "OK $prev"
else
echo "mv $prev $post"