mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
remove xattr com.apple.quarantine before trying spctl
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user