projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6562235
)
remove xattr com.apple.quarantine before trying spctl
author
AJ ONeal
<aj@therootcompany.com>
Tue, 25 Aug 2020 04:25:24 +0000
(
04:25
+0000)
committer
AJ ONeal
<aj@therootcompany.com>
Tue, 25 Aug 2020 04:25:24 +0000
(
04:25
+0000)
_webi/template.sh
patch
|
blob
|
history
diff --git
a/_webi/template.sh
b/_webi/template.sh
index 651ae99fe967ace54a3d1773e2ea7eec237f051e..274bfa17d01fc107a625e1b296d7cf7003c91f2f 100644
(file)
--- 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