wesnoth/utils/travis/utf8_bom_dog.sh
pentarctagon c456d4b288 Make UTF8 checks fail the build if they find anything.
Also fixes a comment typo in docker_run.sh.
2018-03-23 18:59:28 -05:00

8 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