X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_webi%2Ftemplate.sh;h=274bfa17d01fc107a625e1b296d7cf7003c91f2f;hb=72406c4e0d438b76da054be8d5eff42d08312498;hp=651ae99fe967ace54a3d1773e2ea7eec237f051e;hpb=31e780afa641bb0b67b8f48e873c53273ea50462;p=webi-installers%2F.git 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