Skip to content

Commit

Permalink
Properly handle targets with spaces in their names
Browse files Browse the repository at this point in the history
Use quotes around the argument to basename path. Ensures this succeeds when the Xcode target name has spaces.
  • Loading branch information
paulschreiber authored Jan 10, 2024
1 parent 7f2529d commit 2ae770c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/scripts/react-native-xcode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fi
PACKAGER_SOURCEMAP_FILE=
if [[ $EMIT_SOURCEMAP == true ]]; then
if [[ $USE_HERMES != false ]]; then
PACKAGER_SOURCEMAP_FILE="$CONFIGURATION_BUILD_DIR/$(basename $SOURCEMAP_FILE)"
PACKAGER_SOURCEMAP_FILE="$CONFIGURATION_BUILD_DIR/$(basename "$SOURCEMAP_FILE")"
else
PACKAGER_SOURCEMAP_FILE="$SOURCEMAP_FILE"
fi
Expand Down

0 comments on commit 2ae770c

Please sign in to comment.