colorize output only if echo supports it

master
Fraser Tweedale 2014-02-22 00:06:53 +10:00
parent 8cba9c5781
commit e6a5374bfb
1 changed files with 5 additions and 1 deletions

4
nvm.sh
View File

@ -132,7 +132,11 @@ nvm_checksum() {
}
colorize_version() {
if [ -n "$DASH_E" ]; then
echo $DASH_E "\033[0;34m$1\033[0m"
else
echo $1
fi
}
print_versions() {