File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ EXEEXT := $(shell $(PYTHON) -c \
7777 "import sys; print('.exe' if sys.platform == 'win32' else '') ")
7878
7979NODE_EXE = node$(EXEEXT )
80- NODE ?= ./$(NODE_EXE )
80+ # Use $(PWD) so we can cd to anywhere before calling this
81+ NODE ?= "$(PWD ) /$(NODE_EXE ) "
8182NODE_G_EXE = node_g$(EXEEXT )
8283NPM ?= ./deps/npm/bin/npm-cli.js
8384
@@ -91,10 +92,9 @@ BUILD_RELEASE_FLAGS ?= $(BUILD_DOWNLOAD_FLAGS) $(BUILD_INTL_FLAGS)
9192V ?= 0
9293
9394# Use -e to double check in case it's a broken link
94- # Use $(PWD) so we can cd to anywhere before calling this
9595available-node = \
96- if [ -x $( PWD ) / $( NODE ) ] && [ -e $( PWD ) / $( NODE ) ]; then \
97- $( PWD ) / $( NODE ) $(1 ) ; \
96+ if [ -x " $( NODE )" ] && [ -e " $( NODE )" ]; then \
97+ " $( NODE )" $(1 ) ; \
9898 elif [ -x ` command -v node ` ] && [ -e ` command -v node ` ] && [ ` command -v node ` ]; then \
9999 ` command -v node ` $(1 ) ; \
100100 else \
You can’t perform that action at this time.
0 commit comments