Files
gvm/scripts/function/display_error
T
2012-03-28 21:52:52 -07:00

14 lines
179 B
Plaintext

display_error() {
which tput &> /dev/null
if [[ "$?" == "0" ]]; then
tput sgr0
tput setaf 1
echo "ERROR: $1" >&2
tput sgr0
else
echo "ERROR: $1" >&2
fi
return 1
}