Commit 55b4f02b authored by rl1987's avatar rl1987
Browse files

Fix shellcheck warnings in fixup_filenames.sh

parent 7b386f23
o Code simplification and refactoring (shell scripts):
- Fix shellcheck warnings in src/test/fuzz/fixup_filenames.sh. Resolves
issue 30078.
......@@ -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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment