mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix shellcheck warnings in fixup_filenames.sh
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user