Skip to content

Commit

Permalink
Force the usage of the macOS cp command
Browse files Browse the repository at this point in the history
On Discord machines, `which cp` is ~/.nix-profile/bin/cp. The linux
version of cp has no `-X` flag like its BSD counterpart, so we force the
BSD version here.
  • Loading branch information
stevenpetryk committed Jul 31, 2024
1 parent 98c7077 commit a24435e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ moveOutputs () {
mkdir -p "$RCT_SCRIPT_OUTPUT_DIR"

# Copy all output to output_dir
cp -R -X "$TEMP_OUTPUT_DIR/." "$RCT_SCRIPT_OUTPUT_DIR" || exit 1
/bin/cp -R -X "$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 a24435e

Please sign in to comment.