Skip to content

Commit

Permalink
1.7.1-rc3
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-snelson committed Feb 2, 2023
1 parent 64a59d6 commit c8ca621
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Setup Your Mac/Setup-Your-Mac-via-Dialog.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# Script Version, Jamf Pro Script Parameters and default Exit Code
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

scriptVersion="1.7.1-rc2"
scriptVersion="1.7.1-rc3"
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/
scriptLog="${4:-"/var/tmp/org.churchofjesuschrist.log"}" # Your organization's default location for client-side logs
debugMode="${5:-"verbose"}" # [ true | verbose (default) | false ]
Expand Down Expand Up @@ -1607,6 +1607,11 @@ if [[ "${welcomeDialog}" == "true" ]]; then

eval "${dialogSetupYourMacCMD[*]}" & sleep 0.3
dialogSetupYourMacProcessID=$!
until pgrep -q -x "Dialog"; do
updateScriptLog "WELCOME DIALOG: Waiting to display 'Setup Your Mac' dialog; pausing"
sleep 0.5
done
updateScriptLog "WELCOME DIALOG: 'Setup Your Mac' dialog displayed; ensure it's the front-most app"
runAsUser osascript -e 'tell application "Dialog" to activate'
;;

Expand Down Expand Up @@ -1642,6 +1647,11 @@ else

eval "${dialogSetupYourMacCMD[*]}" & sleep 0.3
dialogSetupYourMacProcessID=$!
until pgrep -q -x "Dialog"; do
updateScriptLog "WELCOME DIALOG: Waiting to display 'Setup Your Mac' dialog; pausing"
sleep 0.5
done
updateScriptLog "WELCOME DIALOG: 'Setup Your Mac' dialog displayed; ensure it's the front-most app"
runAsUser osascript -e 'tell application "Dialog" to activate'

fi
Expand Down

1 comment on commit c8ca621

@dan-snelson
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This really should resolve #35. (Thanks, Bart!)

Please sign in to comment.