Fix incorrect comments in file formatting script

This commit is contained in:
Aaron Franke 2020-07-28 02:56:05 -04:00
parent a5f6c24734
commit 05a418f9e6
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
1 changed files with 4 additions and 4 deletions

View File

@ -31,12 +31,12 @@ while IFS= read -rd '' f; do
elif [[ "$f" == "platform/android/java/lib/src/com/google"* ]]; then elif [[ "$f" == "platform/android/java/lib/src/com/google"* ]]; then
continue continue
fi fi
# Ensures that files are UTF-8 formatted. # Ensure that files are UTF-8 formatted.
recode UTF-8 "$f" 2> /dev/null recode UTF-8 "$f" 2> /dev/null
# Ensures that files have LF line endings. # Ensure that files have LF line endings and do not contain a BOM.
dos2unix "$f" 2> /dev/null dos2unix "$f" 2> /dev/null
# Remove trailing space characters. # Remove trailing space characters and ensures that files end
# -l option handles newlines conveniently and seems to also get rid of BOMs. # with newline characters. -l option handles newlines conveniently.
perl -i -ple 's/\s*$//g' "$f" perl -i -ple 's/\s*$//g' "$f"
# Remove the character sequence "== true" if it has a leading space. # Remove the character sequence "== true" if it has a leading space.
perl -i -pe 's/\x20== true//g' "$f" perl -i -pe 's/\x20== true//g' "$f"