From: AJ ONeal Date: Tue, 25 Aug 2020 04:25:24 +0000 (+0000) Subject: remove xattr com.apple.quarantine before trying spctl X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=5f35c74c4a5de4f00b1169b7ddd00b2e352f8346;p=webi-installers%2F.git remove xattr com.apple.quarantine before trying spctl --- diff --git a/_webi/template.sh b/_webi/template.sh index 651ae99..274bfa1 100644 --- a/_webi/template.sh +++ b/_webi/template.sh @@ -239,6 +239,12 @@ webi_post_install() { } _webi_enable_exec() { + if [ -n "$(command -v spctl)" ] && [ -n "$(command -v xattr)" ] ; then + xattr -r -d com.apple.quarantine "$pkg_src" + return 0 + fi + # TODO need to test that the above actually worked + # (and proceed to this below if it did not) if [ -n "$(command -v spctl)" ]; then echo "Checking permission to execute '$pkg_cmd_name' on macOS 11+" set +e