2
1
mirror of https://github.com/kdabir/has.git synced 2024-09-18 17:01:29 +02:00

colorize the version as well

This commit is contained in:
Kunal Dabir 2018-11-15 11:53:28 +05:30
parent 1ad2f05548
commit 4e91758c00

2
has
View File

@ -151,7 +151,7 @@ __detect(){
KO=$(($KO+1))
elif [ ${status} -eq 0 ] || [ ${status} -eq 141 ]; then ## successfully executed
printf "${PASS} ${command} ${version}\n"
printf "${PASS} ${command} \e[1m\e[33;5;2m${version}\e[m\n"
OK=$(($OK+1))
else ## as long as its not 127, command is there, but we might not have been able to extract version