diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index 88ea804a806324..dd26d71d75dbbd 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -88,7 +88,7 @@ nodejs_not_found() exit 2 } -type $NODE_BINARY >/dev/null 2>&1 || nodejs_not_found +type "$NODE_BINARY" >/dev/null 2>&1 || nodejs_not_found # Print commands before executing them (useful for troubleshooting) set -x @@ -105,7 +105,7 @@ fi BUNDLE_FILE="$DEST/main.jsbundle" -$NODE_BINARY "$CLI_PATH" $BUNDLE_COMMAND \ +"$NODE_BINARY" "$CLI_PATH" $BUNDLE_COMMAND \ $CONFIG_ARG \ --entry-file "$ENTRY_FILE" \ --platform ios \