From 045a97cd7afe9ceb50d7ae23db61ed4d0643bd09 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 26 Sep 2020 22:55:29 +0000 Subject: [PATCH] allow xattr to fail --- _webi/template.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1