diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-05-01 09:11:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-05-01 09:11:20 -0400 |
commit | 4973ceb46b2b969906a4574d5aa608512c5bf83d (patch) | |
tree | f1ec16060ef491adfa6e2c9ce198e048e91ca2ef | |
parent | 39bd10dca65fb4007a3da2a15323e6a8bebfd0aa (diff) | |
parent | 55b4f02ba6cbbd4cae942a9e84e48e237d8e38aa (diff) | |
download | tor-4973ceb46b2b969906a4574d5aa608512c5bf83d.tar.gz tor-4973ceb46b2b969906a4574d5aa608512c5bf83d.zip |
Merge remote-tracking branch 'tor-github/pr/950'
-rw-r--r-- | changes/ticket30078 | 3 | ||||
-rwxr-xr-x | src/test/fuzz/fixup_filenames.sh | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/changes/ticket30078 b/changes/ticket30078 new file mode 100644 index 0000000000..5ab5abdbfd --- /dev/null +++ b/changes/ticket30078 @@ -0,0 +1,3 @@ + o Code simplification and refactoring (shell scripts): + - Fix shellcheck warnings in src/test/fuzz/fixup_filenames.sh. Resolves + issue 30078. 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" |