]> git.proxmox.com Git - mirror_qemu.git/blobdiff - scripts/entitlement.sh
hw/arm: Add `\n` to hint message
[mirror_qemu.git] / scripts / entitlement.sh
index d2a7079ce3e9ab89998a799e48caea80bd25f4bf..0f412949ec6c286c9655a7b0d8cd2d5f68271f9e 100755 (executable)
@@ -8,20 +8,20 @@ if [ "$1" = --install ]; then
   in_place=false
 fi
 
-SRC="$1"
-DST="$2"
-ENTITLEMENT="$3"
-ICON="$4"
+DST="$1"
+SRC="$2"
+ICON="$3"
+ENTITLEMENT="$4"
 
 if $in_place; then
   trap 'rm "$DST.tmp"' exit
-  cp -af "$SRC" "$DST.tmp"
+  cp -pPf "$SRC" "$DST.tmp"
   SRC="$DST.tmp"
 else
   cd "$MESON_INSTALL_DESTDIR_PREFIX"
 fi
 
-if test "$ENTITLEMENT" != '/dev/null'; then
+if test -n "$ENTITLEMENT"; then
   codesign --entitlements "$ENTITLEMENT" --force -s - "$SRC"
 fi