Skip to content

Commit

Permalink
Update checks for Setup Assistant, Finder and Dock
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-snelson committed Dec 8, 2022
1 parent 509dba8 commit 5864bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Setup Your Mac/Setup-Your-Mac-via-Dialog.bash
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ caffeinate -dimsu -w $$ &
# Validate Setup Assistant has completed
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

while (pgrep -ql "Setup Assistant"); do
while pgrep -q -x "Setup Assistant"; do
echo "Setup Assistant is still running; pausing for 2 seconds"
sleep 2
done
Expand All @@ -62,7 +62,7 @@ echo "Setup Assistant is no longer running; proceeding …"
# Confirm Dock is running / user is at Desktop
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

until (pgrep -qlf "Finder.app" && pgrep -lf "Dock.app"); do
until pgrep -q -x "Finder" && pgrep -q -x "Dock"; do
echo "Finder & Dock are NOT running; pausing for 1 second"
sleep 1
done
Expand Down

0 comments on commit 5864bb6

Please sign in to comment.