Fix shellcheck warnings in fixup_filenames.sh

This commit is contained in:
rl1987
2019-04-15 12:13:35 +03:00
parent 7b386f2356
commit 55b4f02ba6
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -0,0 +1,3 @@
o Code simplification and refactoring (shell scripts):
- Fix shellcheck warnings in src/test/fuzz/fixup_filenames.sh. Resolves
issue 30078.
+3 -3
View File
@@ -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"