Skip to content

Commit c7bd14a

Browse files
committed
Use assignment instead of ||= operator now that it's gated by exit_hooks_installed
1 parent 4be7486 commit c7bd14a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

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

5-
NODE_BINARY ||= ENV["NODE_BINARY"] || `command -v node`.strip
6-
CLI_COMMAND ||= "'#{NODE_BINARY}' '#{File.join(__dir__, "../dist/node/cli/run.js")}'"
7-
PATCH_XCODE_PROJECT_COMMAND ||= "#{CLI_COMMAND} patch-xcode-project '#{Pod::Config.instance.installation_root}'"
5+
NODE_BINARY = ENV["NODE_BINARY"] || `command -v node`.strip
6+
CLI_COMMAND = "'#{NODE_BINARY}' '#{File.join(__dir__, "../dist/node/cli/run.js")}'"
7+
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
1010
at_exit do

0 commit comments

Comments
 (0)