Remove TERM env usage
@@ -25,27 +25,15 @@ function print_checkpoint {
}
function green {
- if [[ -n "$TERM" ]]; then
- echo -e "$(tput setaf 2)$1$(tput sgr0)"
- else
- echo ":) $1"
- fi
+ echo -e "\e[32m$1\e[0m"
}
function red {
- if [[ -n "$TERM" ]]; then
- echo -e "$(tput setaf 1)$1$(tput sgr0)"
- else
- echo ":( $1"
- fi
+ echo -e "\e[31m$1\e[0m"
}
function bold_blue {
- if [[ -n "$TERM" ]]; then
- echo -e "$(tput setaf 6; tput bold)$1$(tput sgr0)"
- else
- echo "$1"
- fi
+ echo -e "\e[1;34m$1\e[0m"
}
function check_output {
