Skip to content

Commit

Permalink
Allow react-native and expo to build when using GNU coreutils
Browse files Browse the repository at this point in the history
See the issue at #32432 (comment)

This fixes a bizarre issue when using the GNU coreutils tools. There are very minor changes in the standard command-line tools on macOS and the GNU coreutils. The `cp` command has slightly different semantics across these operating systems, so this commit normalizes those differences and allows GNU coreutils to be used or the system native version of `cp`.
  • Loading branch information
shreeve committed Nov 17, 2022
1 parent e047eed commit ea27953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/react_native_pods_utils/script_phases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ moveOutputs () {
mkdir -p "$RCT_SCRIPT_OUTPUT_DIR"

# Copy all output to output_dir
cp -R "$TEMP_OUTPUT_DIR/" "$RCT_SCRIPT_OUTPUT_DIR" || exit 1
cp -R "$TEMP_OUTPUT_DIR/." "$RCT_SCRIPT_OUTPUT_DIR/." || exit 1
echo "$LIBRARY_NAME output has been written to $RCT_SCRIPT_OUTPUT_DIR:" >> "${SCRIPT_OUTPUT_FILE_0}" 2>&1
ls -1 "$RCT_SCRIPT_OUTPUT_DIR" >> "${SCRIPT_OUTPUT_FILE_0}" 2>&1
}
Expand Down

0 comments on commit ea27953

Please sign in to comment.