Sign in
fuchsia
/
sdk-integration
/
831365d37359d6bde4a5e426f0c158abbe8b4560
/
.
/
bazel_rules_fuchsia
/
fuchsia
/
tools
/
cp.sh
blob: db78e6361344ba5497fce023d9cf836d654ea414 [
file
] [
log
] [
blame
]
#!/bin/bash
# A cp wrapper that only adds `-R` if SRC is a dir, so it works on MacOS.
#
# Usage: ./cp.sh SRC DEST [OPTIONS...]
set
-
euo pipefail
if
[[
-
d $1
]];
then
cp
-
R $@
else
cp $@
fi