File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2
2
argv0=$( echo " $0 " | sed -e ' s,\\,/,g' )
3
3
basedir=$( dirname " $( readlink " $0 " || echo " $argv0 " ) " )
4
4
5
+ is_mingw64=0
6
+
5
7
case " $( uname -s) " in
6
8
Darwin) basedir=" $( cd " $( dirname " $argv0 " ) " && pwd ) " ;;
7
9
Linux) basedir=$( dirname " $( readlink -f " $0 " || echo " $argv0 " ) " ) ;;
8
10
* CYGWIN* ) basedir=` cygpath -w " $basedir " ` ;;
9
11
* MSYS* ) basedir=` cygpath -w " $basedir " ` ;;
12
+ * MINGW* ) basedir=` cygpath -w " $basedir " ` ; is_mingw64=1;;
10
13
esac
11
14
12
15
command_exists () {
13
16
command -v " $1 " > /dev/null 2>&1 ;
14
17
}
15
18
16
- if command_exists node; then
19
+ if [ " $YARN_FORCE_WINPTY " != 1 ] && [ " $is_mingw64 " = 1 ] && command_exists " node.exe" ; then
20
+ exec node.exe " $basedir /yarn.js" " $@ "
21
+ ret=$?
22
+ elif command_exists node; then
17
23
if [ " $YARN_FORCE_WINPTY " = 1 ] || command_exists winpty && test -t 1; then
18
24
winpty node " $basedir /yarn.js" " $@ "
19
25
else
You can’t perform that action at this time.
0 commit comments