From c684f9fc62e865a5ecbd8ade0f5628f016eebcb2 Mon Sep 17 00:00:00 2001 From: "Dr. Sergey Pogodin" Date: Mon, 8 Jan 2024 08:52:51 -0800 Subject: [PATCH] Patches `with-environment.sh` script (#42184) Summary: Closes https://github.com/facebook/react-native/issues/42164 ## Changelog: [IOS] [FIXED] - Fixes `with-environment.sh` script for the case when Node can't be found prior to loading `.xcode.env` Pull Request resolved: https://github.com/facebook/react-native/pull/42184 Test Plan: This is a trivial update, no need for much testing. Reviewed By: cortinico Differential Revision: D52602653 Pulled By: cipolleschi fbshipit-source-id: 0881456bf165d895252ae38cb7c7aee945cfaf52 --- packages/react-native/scripts/xcode/with-environment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/xcode/with-environment.sh b/packages/react-native/scripts/xcode/with-environment.sh index f36190e6b14..c6bd62c87fc 100755 --- a/packages/react-native/scripts/xcode/with-environment.sh +++ b/packages/react-native/scripts/xcode/with-environment.sh @@ -13,7 +13,7 @@ # ./with-environment.sh command # Start with a default -NODE_BINARY=$(command -v node) +NODE_BINARY=$(command -v node || echo "") export NODE_BINARY # Override the default with the global environment