gitprecommithook: replaced echo with echo -e for color on linux(maybe for windows too

This commit is contained in:
Andreas Stallinger
2014-03-31 23:04:01 +02:00
parent f61425b4e8
commit 27e68e0e1e
+2 -2
View File
@@ -8,13 +8,13 @@ BRANCH_NAME=$(git symbolic-ref -q --short HEAD)
if [ -z $BRANCH_NAME ]
then
echo $ABORT "You are not on any branch."
echo -e $ABORT "You are not on any branch."
exit 1
fi
if [ $BRANCH_NAME == "master" ]
then
echo $ABORT "Commiting to master is prohibited."
echo -e $ABORT "Commiting to master is prohibited."
exit 1
fi