Skip to content

Commit

Permalink
Merge pull request geerlingguy#75 from 1f5/patch-1
Browse files Browse the repository at this point in the history
Better readable search for eligible installer
  • Loading branch information
geerlingguy authored Apr 29, 2020
2 parents 3a8b98d + 20ae853 commit ab0adf5
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions prepare-iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,29 +164,20 @@ done

# See if we can find an eligible installer.
# If successful, then create the iso file from the installer.
installerExists "Install macOS Mojave.app"
result=$?
if [ ${result} -eq 0 ] ; then

if installerExists "Install macOS Mojave.app" ; then
createISO "Install macOS Mojave.app" "Mojave"
else
installerExists "Install macOS High Sierra.app"
result=$?
if [ ${result} -eq 0 ] ; then
if installerExists "Install macOS High Sierra.app" ; then
createISO "Install macOS High Sierra.app" "HighSierra"
else
installerExists "Install macOS Sierra.app"
result=$?
if [ ${result} -eq 0 ] ; then
if installerExists "Install macOS Sierra.app" ; then
createISO "Install macOS Sierra.app" "Sierra"
else
installerExists "Install OS X El Capitan.app"
result=$?
if [ ${result} -eq 0 ] ; then
if installerExists "Install OS X El Capitan.app" ; then
createISO "Install OS X El Capitan.app" "ElCapitan"
else
installerExists "Install OS X Yosemite.app"
result=$?
if [ ${result} -eq 0 ] ; then
if installerExists "Install OS X Yosemite.app" ; then
createISO "Install OS X Yosemite.app" "Yosemite"
else
echo "Could not find installer for Yosemite (10.10), El Capitan (10.11), Sierra (10.12), High Sierra (10.13) or Mojave (10.14)."
Expand Down

0 comments on commit ab0adf5

Please sign in to comment.