From 6a84c26fc82cfc5fa8fdd97d6952025c98ce2d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Sun, 15 Dec 2024 13:43:48 +0100 Subject: [PATCH] Add single quotes to avoid config-cmd escaping --- packages/react-native/scripts/react-native-xcode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/react-native-xcode.sh b/packages/react-native/scripts/react-native-xcode.sh index d59caa1bb14442..b5d50ccb4bb496 100755 --- a/packages/react-native/scripts/react-native-xcode.sh +++ b/packages/react-native/scripts/react-native-xcode.sh @@ -148,7 +148,7 @@ if [[ -n "$CONFIG_JSON" ]]; then elif [[ -n "$CONFIG_CMD" ]]; then EXTRA_ARGS+=("--config-cmd" "$CONFIG_CMD") else - EXTRA_ARGS+=("--config-cmd" "$NODE_BINARY $NODE_ARGS $REACT_NATIVE_DIR/cli.js config") + EXTRA_ARGS+=("--config-cmd" "'$NODE_BINARY' $NODE_ARGS '$REACT_NATIVE_DIR/cli.js' config") fi # shellcheck disable=SC2086