Skip to content

Commit

Permalink
Merge pull request geerlingguy#12 from O-kasso/eject-installer
Browse files Browse the repository at this point in the history
Eject macOs installer disk if its still open
  • Loading branch information
geerlingguy authored Mar 24, 2017
2 parents 71aa82d + 5aa7cce commit 9af7804
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions prepare-iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ function installerExists()
#
# Main script code
#
# See if we can find either the ElCapitan or the 10.12 installer.
# Eject installer disk in case it was opened after download from App Store
hdiutil info | grep /dev/disk | grep partition | cut -f 1 | xargs hdiutil detach -force

# See if we can find either the ElCapitan or the Sierra installer.
# If successful, then create the iso file from the installer.
#

installerExists "Install macOS Sierra.app"
result=$?
Expand Down

0 comments on commit 9af7804

Please sign in to comment.