Skip to content

Commit

Permalink
colored bash output (red for non utf-8 values)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Sep 24, 2012
1 parent e091a54 commit 5d23d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-tools/checkEncodingUTF8.sh
Expand Up @@ -18,7 +18,7 @@ function checkDirectory() {
if [ -f ${name} ]; then
charset=`file -bi ${name} | grep -o 'utf-8'`
if [ 'utf-8' != "${charset}" ]; then
file -bi ${name} | grep -v 'charset=utf-8' | xargs echo "${name} is encoded in"
file -bi ${name} | grep -v 'charset=utf-8' | xargs echo -e "\E[31;40m ${name} is encoded in"
fi
elif [ -d ${name} ]; then
checkDirectory ${name}
Expand Down

0 comments on commit 5d23d4e

Please sign in to comment.