@ -10,7 +10,9 @@ readonly BINARY_NAME="has"
readonly VERSION="v1.6.0"
## constants - symbols for success failure
if [[ -z $TERM ]]; then
if [[ ! -t 1 ]]; then
TERM="dumb"
elif [[ -z $TERM ]]; then
TERM="xterm"
fi
readonly txtreset="$(tput -T $TERM sgr0)"