wesnoth/utils/travis/utf8_bom_dog.sh
pentarctagon 5e386ef43b Make UTF8 checks fail the build if they find anything.
Also fixes a comment typo in docker_run.sh.

(cherry-picked from commit c456d4b288)
2018-10-07 03:18:08 +00:00

7 lines
192 B
Bash
Executable file

#!/bin/bash
set -e
if grep -qorHbm1 "^`echo -ne '\xef\xbb\xbf'`" po/ src/ data/ ; then
echo "Found UTF8 BOM(s)!"
grep -orHbm1 "^`echo -ne '\xef\xbb\xbf'`" po/ src/ data/
exit 1
fi