From 27e68e0e1ec008ba606770da0f21fecc3ebf414c Mon Sep 17 00:00:00 2001 From: Andreas Stallinger Date: Mon, 31 Mar 2014 23:04:01 +0200 Subject: [PATCH] gitprecommithook: replaced echo with echo -e for color on linux(maybe for windows too --- .git_pre_commit_hook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.git_pre_commit_hook.sh b/.git_pre_commit_hook.sh index 17ef6262..963dcaa4 100755 --- a/.git_pre_commit_hook.sh +++ b/.git_pre_commit_hook.sh @@ -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