wesnoth/utils/travis/utf8_bom_dog.sh
2014-07-07 15:14:28 -04:00

7 lines
200 B
Bash
Executable file

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