wesnoth/utils/CI/utf8_bom_dog.sh

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