mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Use tput instead of hard-coded color codes
This commit is contained in:
4
test.sh
4
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
|
||||
|
||||
Reference in New Issue
Block a user