Skip to content

Commit 4be7486

Browse files
committed
Use NODE_BINARY and read it off the environment
1 parent 2c5c964 commit 4be7486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/host/scripts/patch-xcode-project.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Setting a flag to avoid running this command on every require
33
@exit_hooks_installed = true
44

5-
NODE_PATH ||= `which node`.strip
6-
CLI_COMMAND ||= "'#{NODE_PATH}' '#{File.join(__dir__, "../dist/node/cli/run.js")}'"
5+
NODE_BINARY ||= ENV["NODE_BINARY"] || `command -v node`.strip
6+
CLI_COMMAND ||= "'#{NODE_BINARY}' '#{File.join(__dir__, "../dist/node/cli/run.js")}'"
77
PATCH_XCODE_PROJECT_COMMAND ||= "#{CLI_COMMAND} patch-xcode-project '#{Pod::Config.instance.installation_root}'"
88

99
# Using an at_exit hook to ensure the command is executed after the pod install is complete

0 commit comments

Comments
 (0)