Merge remote-tracking branch 'tor-github/pr/950'

This commit is contained in:
Nick Mathewson
2019-05-01 09:11:20 -04:00
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"