]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix shellcheck warnings in fixup_filenames.sh
authorrl1987 <rl1987@sdf.lonestar.org>
Mon, 15 Apr 2019 09:13:35 +0000 (12:13 +0300)
committerrl1987 <rl1987@sdf.lonestar.org>
Mon, 15 Apr 2019 09:13:35 +0000 (12:13 +0300)
changes/ticket30078 [new file with mode: 0644]
src/test/fuzz/fixup_filenames.sh

diff --git a/changes/ticket30078 b/changes/ticket30078
new file mode 100644 (file)
index 0000000..5ab5abd
--- /dev/null
@@ -0,0 +1,3 @@
+  o Code simplification and refactoring (shell scripts):
+    - Fix shellcheck warnings in src/test/fuzz/fixup_filenames.sh. Resolves
+      issue 30078.
index 68efc1abc5862e6bdc13ec56593dc81833047461..f730d532a5d1182f4a081eb51923bdda666426ff 100755 (executable)
@@ -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"