grahampugh / erase-install

A script that automates downloading macOS installers, and optionally erasing or upgrading macOS in a single process. Watch the video!
https://grahamrpugh.com/2023/05/14/macaduk-presentation-eraseinstall.html
Apache License 2.0
836 stars 131 forks source link

Update erase-install.sh #359

Closed kylerobertson0404 closed 1 year ago

kylerobertson0404 commented 1 year ago

when using --build flag it was never finding an OS, turns out variable i was not incrementing in the while loop. Changed it to a mathematical expression that will increment i

grahampugh commented 1 year ago

Thanks for pointing this out. I've fixed this in the main branch with more modern code: ((i++)).