Skip to content

Commit f5e5274

Browse files
shreevefacebook-github-bot
authored andcommitted
Allow react-native and expo to build when using GNU coreutils (#35382)
Summary: See the issue at #32432 (comment) This fixes a bizarre issue when using the GNU coreutils tools. There are very minor differences 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`. Fixes #32432 ## Changelog [General] [Fixed] - Allow GNU coreutils to be used to build projects Pull Request resolved: #35382 Test Plan: This change allows the use of the system or GNU coreutils verson of `cp`. Reviewed By: cipolleschi Differential Revision: D41532472 Pulled By: cortinico fbshipit-source-id: f0fe5274d3828bf6099deceee797a82a6adfdcab
1 parent 50fbb27 commit f5e5274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/react_native_pods_utils/script_phases.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ moveOutputs () {
104104
mkdir -p "$RCT_SCRIPT_OUTPUT_DIR"
105105

106106
# Copy all output to output_dir
107-
cp -R "$TEMP_OUTPUT_DIR/" "$RCT_SCRIPT_OUTPUT_DIR" || exit 1
107+
cp -R "$TEMP_OUTPUT_DIR/." "$RCT_SCRIPT_OUTPUT_DIR" || exit 1
108108
echo "$LIBRARY_NAME output has been written to $RCT_SCRIPT_OUTPUT_DIR:" >> "${SCRIPT_OUTPUT_FILE_0}" 2>&1
109109
ls -1 "$RCT_SCRIPT_OUTPUT_DIR" >> "${SCRIPT_OUTPUT_FILE_0}" 2>&1
110110
}

0 commit comments

Comments
 (0)