Remove utf-8 BOM in astyle.sh

This commit is contained in:
Matthias Kuhn 2015-09-14 16:19:15 +02:00
parent 343cc541fb
commit 76ccf71537

View File

@ -113,6 +113,13 @@ for f in "$@"; do
fi
flip -ub "$f"
eval "$cmd '$f'"
if [[ -f $f && `head -c 3 $f` == $'\xef\xbb\xbf' ]]; then
mv $f $f.bom
tail -c +4 $f.bom > $f
echo "removed BOM from $f"
fi
#qgsloggermig.pl "$f"
eval "$cmd '$f'"
done