From 359f1a9a94c6b9f9507b78d0680bd22a170c438f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 25 May 2014 01:32:07 +0100 Subject: [PATCH] Use tput instead of hard-coded color codes --- test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index d7da71f..f9ae4f1 100755 --- a/test.sh +++ b/test.sh @@ -25,8 +25,8 @@ testfiles="$(find "$testdir" -name "*-test.sh")" RET=0 for testfile in $testfiles; do echo "" - echo -en "\033[0;35mrunning: " - echo -e "\033[0;36m${testfile/#$(dirname "$testdir")\//}\033[0m" + echo -en "$(tput setaf 5)running: " + echo -e "$(tput setaf 6)${testfile/#$(dirname "$testdir")\//}$(tput sgr0)" cd "$(dirname "$testfile")" "$testfile" if [ "$?" != "0" ]; then RET=1; fi