Skip to content

Commit 40dcb54

Browse files
committed
Refactor: use better variable name when determine to use winpty
1 parent cc1d7bf commit 40dcb54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/yarn

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#!/bin/sh
22
basedir=$(dirname "$(readlink "$0" || echo "$(echo "$0" | sed -e 's,\\,/,g')")")
33

4-
is_msys=0
4+
use_winpty=0
55

66
case `uname` in
77
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
8-
MSYS_NT*|MINGW*) is_msys=1;;
8+
MSYS_NT*) use_winpty=1;;
99
esac
1010

1111
command_exists() {
1212
command -v "$1" >/dev/null 2>&1;
1313
}
1414

1515
if command_exists node; then
16-
if [ $is_msys -eq 1 ]; then
16+
if [ $use_winpty -eq 1 ]; then
1717
winpty node "$basedir/yarn.js" "$@"
1818
else
1919
node "$basedir/yarn.js" "$@"

0 commit comments

Comments
 (0)