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
834 stars 131 forks source link

[BUG] Upgrade from 14.5 beta to 14.5 not possible due to version comparison issue #507

Open grahampugh opened 4 months ago

grahampugh commented 4 months ago

Describe the bug The script thinks that 23F5049f is newer than 23F79. In older versions (before using is-at-least these comparisons were more robust.

To Reproduce Try to upgrade from 23F5049f to 23F79. The latest installer will download and run, but if just caching, the next run will fail due to version comparison.

Expected behavior The script should recognise that 23F79 is newer than 23F5049f.

Environment (please complete the following information):