Skip to content

Commit

Permalink
Fix handling for no whitelist additions
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Apr 20, 2020
1 parent 10a4410 commit d8f2d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unknown-words.sh
Original file line number Diff line number Diff line change
Expand Up @@ -440,16 +440,16 @@ chmod +x $remove_obsolete_words
for file in '$whitelist_files'; do $remove_obsolete_words $file; done
rm $remove_obsolete_words' >> $instructions
fi
echo '(' >> $instructions
if [ -n "$patch_add" ]; then
echo '(' >> $instructions
if [ -e "$new_whitelist_file" ]; then
echo 'cat "'"$new_whitelist_file"'"' >> $instructions;
fi
echo 'echo "
'"$patch_add"'
"' >> $instructions
echo ") | sort -u -f | perl -ne 'next unless /./; print' > new_whitelist.txt && mv new_whitelist.txt '$new_whitelist_file'" >> $instructions
fi
echo ") | sort -u -f | perl -ne 'next unless /./; print' > new_whitelist.txt && mv new_whitelist.txt '$new_whitelist_file'" >> $instructions
to_publish_whitelist >> $instructions
cat $instructions
rm $instructions
Expand Down

0 comments on commit d8f2d9e

Please sign in to comment.