Skip to contentSkip to conversation

scripts/entitlement.sh: Use backward-compatible cp flags

PATCH New Evan Miller 1 participant 1 message Nov 30, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/entitlement.sh: Use backward-compatible cp flags

Older versions of Mac OS X do not support cp -a. The cp man page indicates that -a is equivalent to -pPR.

entitlement.sh renamed from entitlement.sh.orig +1 -1
@@ -15,7 +15,7 @@
 
 if $in_place; then
   trap 'rm "$DST.tmp"' exit
-  cp -af "$SRC" "$DST.tmp"
+  cp -pPRf "$SRC" "$DST.tmp"
   SRC="$DST.tmp"
 else
   cd "$MESON_INSTALL_DESTDIR_PREFIX"