Permalink
Browse files

Account for term type 'unknown', thanks Chad Woolley.

  • Loading branch information...
1 parent 16662d2 commit 507e0c7d2f8b4e8e8d6ee0ddd521d04e48a3fd7e @wayneeseguin wayneeseguin committed Apr 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/log
View
@@ -6,7 +6,7 @@ if [[ ! -z "$2" ]] ; then level=$1 ; shift ; else level="info" ; fi
message=$1
-if [[ -z "$rvm_interactive" ]] || [[ -z "$TERM" ]] ; then
+if [[ -z "$rvm_interactive" ]] || [[ -z "$TERM" ]] || [[ "unknown" = "$TERM" ]] ; then
case "$level" in
debug) shift ; echo -e "<d>$message </d>" ;;
info) shift ; echo -e "<i>$message </i>" ;;

0 comments on commit 507e0c7

Please sign in to comment.