+ # 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
+ is_allowed="$(spctl -a "$pkg_src_cmd" 2>&1 | grep valid)"
+ set -e
+ if [ -z "$is_allowed" ]; then
+ 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
+ }
+
+ # a friendly message when all is well, showing the final install path in $HOME/.local
+ _webi_done_message() {
+ echo "Installed $(_webi_canonical_name) as $pkg_dst_cmd"
+ }
+
+ ##
+ ##
+ ## BEGIN custom override functions from <package>/install.sh
+ ##
+ ##
+
+ WEBI_SINGLE=
+
+ if [[ -z ${WEBI_WELCOME:-} ]]; then
+ echo ""
+ echo "Thanks for using webi to install '$PKG_NAME' on '$WEBI_OS/$WEBI_ARCH'."
+ echo "Have a problem? Experience a bug? Please let us know:"
+ echo " https://github.com/webinstall/packages/issues"
+ echo ""