Skip to content

Commit

Permalink
Shield TTY detection for Cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
tdd committed May 22, 2015
1 parent b096cc2 commit 34ccff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-stree
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
[ -n "$STREE_DEBUG" ] && set -x

# Env/context-related flags so we know what extra commands can be called upon.
tty -s <&1 && [[ "$TERM"=~"color" ]] && is_tty=true || is_tty=false
{ [ "cygwin" = "$TERM" ] || { tty -s <&1 && [[ "$TERM"=~"color" ]]; }; } && is_tty=true || is_tty=false
{ echo "foo" | iconv -t 'ASCII' &> /dev/null; } && has_iconv=true || has_iconv=false
{ echo "foo" | tr A-Z a-z &> /dev/null; } && has_tr=true || has_tr=false

Expand Down

0 comments on commit 34ccff1

Please sign in to comment.