mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
Allow react-native and expo to build when using GNU coreutils (#35382)
Summary: See the issue at https://github.com/facebook/react-native/issues/32432#issuecomment-1242234121 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: https://github.com/facebook/react-native/pull/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
This commit is contained in:
parent
50fbb27bd9
commit
f5e5274e6a
@ -104,7 +104,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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user