From 9fa1003b75805a73033e9b9678d5f4a09fba1b3b Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Sun, 27 Nov 2022 12:34:04 +0000 Subject: [PATCH] Update install-app-loop-beta.sh --- Helpers/install-app-loop-beta.sh | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/Helpers/install-app-loop-beta.sh b/Helpers/install-app-loop-beta.sh index cab5e86..1ee449c 100644 --- a/Helpers/install-app-loop-beta.sh +++ b/Helpers/install-app-loop-beta.sh @@ -2,14 +2,6 @@ # Installation using Installomator with Dialog showing progress (and posibility of adding to the Dock) -if [ "$SHOWDIALOG" == "Y" ]; then - echo "Dialog will open" -else - echo "Dialog will not open" - NOTIFY=silent - installomatorNotify="NOTIFY=silent" -fi - prplwhatinstall=$(echo $MDMAPPLABEL | sed 's/ /, /g') LOGO="mosyleb" # "mosyleb", "mosylem", "addigy", "microsoft", "ws1" @@ -136,13 +128,7 @@ if [[ $installomatorVersion -lt 10 ]] || [[ $(sw_vers -buildVersion | cut -c1-2) #echo "Installomator should be at least version 10 to support swiftDialog. Installed version $installomatorVersion." #echo "And macOS 11 Big Sur (build 20A) is required for swiftDialog. Installed build $(sw_vers -buildVersion)." installomatorNotify="NOTIFY=all" - if [ "$SHOWDIALOG" == "Y" ]; then - echo "Dialog will open" - else - echo "Dialog will not open" - NOTIFY=silent - installomatorNotify="NOTIFY=silent" - fi + else installomatorNotify="NOTIFY=silent" # check for Swift Dialog @@ -239,8 +225,8 @@ else fi echo "LOGO: $LOGO" echo "icon: ${icon}" - - # display first screen + if [ "$SHOWDIALOG" == "Y" ]; then + # display first screen open -a "$dialogApp" --args \ --title none \ --icon "$icon" \ @@ -253,6 +239,10 @@ else # give everything a moment to catch up sleep 0.1 + else + echo "Dialog will not open" + installomatorNotify="NOTIFY=silent" + fi fi # Install software using Installomator