On 26/11/20 22:50, Alexander Graf wrote:
+rm -f "$2" +cp -a "$SRC" "$DST" +codesign --entitlements "$ENTITLEMENT" --force -s - "$DST"
Slight improvement to avoid races between ^C and this script: set -e trap 'rm "$DST.tmp"' exit cp -a "$SRC" "$DST.tmp" codesign --entitlements "$ENTITLEMENT" --force -s - "$DST.tmp" mv "$DST.tmp" "$DST" trap '' exit Paolo