Files
gvm/scripts/function/display_warning
T
2012-07-18 12:28:58 -07:00

14 lines
208 B
Plaintext

display_warning() {
which tput &> /dev/null
if [[ "$?" == "0" ]] && [[ "$TERM" == "xterm" ]]; then
# YELLOW!
tput sgr0
tput setaf 3
echo "WARNING: $1"
tput sgr0
else
echo "$1"
fi
return 1
}