Skip to content

Commit cb84d61

Browse files
committed
Detect when winpty is present and if the current terminal is a TTY
1 parent 3b0bcc0 commit cb84d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/yarn

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ command_exists() {
1212
}
1313

1414
if command_exists node; then
15-
if [ "$YARN_FORCE_WINPTY" = 1 ]; then
15+
if [ "$YARN_FORCE_WINPTY" = 1 ] || command_exists winpty.exe && [ -t 1 ]; then
1616
winpty node "$basedir/yarn.js" "$@"
1717
else
1818
exec node "$basedir/yarn.js" "$@"

0 commit comments

Comments
 (0)