You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
188 B
Plaintext
13 lines
188 B
Plaintext
11 years ago
|
display_message() {
|
||
|
which tput &> /dev/null
|
||
|
if [[ "$?" == "0" ]] && [[ "$TERM" == "xterm" ]]; then
|
||
|
# GREEN!
|
||
|
tput sgr0
|
||
|
tput setaf 2
|
||
|
echo "$1"
|
||
|
tput sgr0
|
||
|
else
|
||
|
echo "$1"
|
||
|
fi
|
||
|
}
|