From: AJ ONeal Date: Sat, 26 Sep 2020 22:55:29 +0000 (+0000) Subject: allow xattr to fail X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=045a97cd7afe9ceb50d7ae23db61ed4d0643bd09;p=webi-installers%2F.git allow xattr to fail --- diff --git a/_webi/template.sh b/_webi/template.sh index 4dc0a2c..911354e 100644 --- a/_webi/template.sh +++ b/_webi/template.sh @@ -239,7 +239,8 @@ webi_post_install() { _webi_enable_exec() { if [ -n "$(command -v spctl)" ] && [ -n "$(command -v xattr)" ] ; then - xattr -r -d com.apple.quarantine "$pkg_src" + # note: some packages contain files that cannot be affected by xattr + xattr -r -d com.apple.quarantine "$pkg_src" || true return 0 fi # TODO need to test that the above actually worked