mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-06 11:20:26 +00:00
update permission request notification
This commit is contained in:
@@ -242,8 +242,14 @@ _webi_enable_exec() {
|
||||
is_allowed="$(spctl -a "$pkg_src_cmd" 2>&1 | grep valid)"
|
||||
set -e
|
||||
if [ -z "$is_allowed" ]; then
|
||||
echo "Requesting permission to execute '$pkg_cmd_name' on Catalina and macOS 11+"
|
||||
sleep 1
|
||||
echo ""
|
||||
echo "##########################################"
|
||||
echo "# IMPORTANT: Permission Grant Required #"
|
||||
echo "##########################################"
|
||||
echo ""
|
||||
echo "Requesting permission to execute '$pkg_cmd_name' on macOS 10.14+"
|
||||
echo ""
|
||||
sleep 3
|
||||
spctl --add "$pkg_src_cmd"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user