Skip to content

Commit

Permalink
Account for term type 'unknown', thanks Chad Woolley.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Apr 14, 2010
1 parent 16662d2 commit 507e0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/log
Expand Up @@ -6,7 +6,7 @@ if [[ ! -z "$2" ]] ; then level=$1 ; shift ; else level="info" ; fi


message=$1 message=$1


if [[ -z "$rvm_interactive" ]] || [[ -z "$TERM" ]] ; then if [[ -z "$rvm_interactive" ]] || [[ -z "$TERM" ]] || [[ "unknown" = "$TERM" ]] ; then
case "$level" in case "$level" in
debug) shift ; echo -e "<d>$message </d>" ;; debug) shift ; echo -e "<d>$message </d>" ;;
info) shift ; echo -e "<i>$message </i>" ;; info) shift ; echo -e "<i>$message </i>" ;;
Expand Down

0 comments on commit 507e0c7

Please sign in to comment.