geerlingguy / macos-virtualbox-vm

Instructions and script to help you create a VirtualBox VM running macOS.
MIT License
2.55k stars 314 forks source link

Fix-up fallback detection #66

Closed silverjam closed 4 years ago

silverjam commented 5 years ago

Using set -x and the $? construct to detect failures doesn't work, instead use if cmd ... to detect if something failed.

deecewan commented 4 years ago

i mean, now, you could make each line an elif and remove all the nesting.