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

[BUG] 13.6 RC is showing in the list when not using the --beta option #427

Closed grahampugh closed 1 year ago

grahampugh commented 1 year ago

Describe the bug The mist-list shows 13.6, but it shouldn't.

To Reproduce Run erase-install.sh --list

Expected behavior Only production installers should be shown

Code/log output Please supply the full command used, and if applicable, add full output from Terminal or from /var/log/erase-install.log. Don't post a partial log - I need the whole thing. Either upload the log as a file, or paste the output in a code block like this:

% sudo /Library/Management/erase-install/erase-install.sh --list
Password:

2023-08-24 13:34:42 | v30.0 | [erase-install] v30.0 script execution started: Thu Aug 24 13:34:42 CEST 2023

2023-08-24 13:34:42 | v30.0 | [erase-install] Arguments provided: --list
2023-08-24 13:34:42 | v30.0 | [erase-install] System version: 13.5.1 (Build: 22G90)
2023-08-24 13:34:42 | v30.0 | [erase-install] A newer version of this script is available. Visit https://github.com/grahampugh/erase-install/releases/tag/v30.1 to obtain the latest version.
2023-08-24 13:34:42 | v30.0 | [check_for_swiftdialog_app] swiftDialog is installed (/Library/Application Support/Dialog/Dialog.app)
2023-08-24 13:34:42 | v30.0 | [check_for_swiftdialog_app] Creating dialog log (/var/tmp/dialog.Q4S)...
2023-08-24 13:34:42 | v30.0 | [log_rotate] Start rotating logs in /Library/Management/erase-install/log
2023-08-24 13:34:42 | v30.0 | [log_rotate] moving /Library/Management/erase-install/log/erase-install.log.2 to /Library/Management/erase-install/log/erase-install.log.3
2023-08-24 13:34:42 | v30.0 | [log_rotate] moving /Library/Management/erase-install/log/erase-install.log.1 to /Library/Management/erase-install/log/erase-install.log.2
2023-08-24 13:34:42 | v30.0 | [log_rotate] moving /Library/Management/erase-install/log/erase-install.log to /Library/Management/erase-install/log/erase-install.log.1
2023-08-24 13:34:42 | v30.0 | [log_rotate] Finished rotating logs in /Library/Management/erase-install/log
2023-08-24 13:34:42 | v30.0 | [check_for_mist] mist is installed (/usr/local/bin/mist)
┌──────────────────┐
│ UPDATE AVAILABLE │
└──────────────────┘
  ├─ There is a mist update available (current version: 1.14, latest version: 1.15)
  ├─ Visit https://github.com/ninxsoft/mist-cli to grab the latest release of mist
┌──────────────────┐
│ INPUT VALIDATION │
└──────────────────┘
  ├─ Search only for latest (first) result will be 'false'...
  ├─ Include betas in search results will be 'false'...
  ├─ Only include compatible installers will be 'true'...
  ├─ Export path will be '/Library/Management/erase-install/mist-list.json'...
  ├─ Export path file extension is valid...
  ├─ Output type will be 'ascii'...
┌────────┐
│ SEARCH │
└────────┘
  ├─ Searching for macOS Installer versions...
  ├─ Exported list as JSON: '/Library/Management/erase-install/mist-list.json'
  └─ Found 26 macOS Installer(s) available for download

┌────────────┬────────────────┬─────────┬─────────┬──────────┬────────────┬────────────┐
│ IDENTIFIER │ NAME           │ VERSION │ BUILD   │ SIZE     │ DATE       │ COMPATIBLE │
├────────────┼────────────────┼─────────┼─────────┼──────────┼────────────┼────────────┤
│ 042-36244  │ macOS Ventura  │ 13.6    │ 22G109  │ 11.95 GB │ 2023-08-23 │ True       │
│ 042-25643  │ macOS Ventura  │ 13.5.1  │ 22G90   │ 11.95 GB │ 2023-08-17 │ True       │
│ 032-69593  │ macOS Ventura  │ 13.5    │ 22G74   │ 11.95 GB │ 2023-07-24 │ True       │
│ 042-01917  │ macOS Ventura  │ 13.4.1  │ 22F82   │ 11.80 GB │ 2023-06-28 │ True       │
│ 032-84910  │ macOS Ventura  │ 13.4    │ 22F66   │ 11.80 GB │ 2023-05-18 │ True       │
│ 002-75541  │ macOS Ventura  │ 13.3    │ 22E252  │ 11.79 GB │ 2023-03-27 │ True       │
│ 042-15015  │ macOS Monterey │ 12.6.8  │ 21G725  │ 12.42 GB │ 2023-07-24 │ True       │
│ 032-97690  │ macOS Monterey │ 12.6.7  │ 21G651  │ 12.41 GB │ 2023-06-28 │ True       │
│ 032-82192  │ macOS Monterey │ 12.6.6  │ 21G646  │ 12.41 GB │ 2023-05-18 │ True       │
│ 032-71575  │ macOS Monterey │ 12.6.5  │ 21G531  │ 12.41 GB │ 2023-04-17 │ True       │
│ 032-63749  │ macOS Monterey │ 12.6.4  │ 21G526  │ 12.41 GB │ 2023-03-27 │ True       │
│ 042-14707  │ macOS Big Sur  │ 11.7.9  │ 20G1426 │ 12.42 GB │ 2023-07-24 │ True       │
│ 032-96684  │ macOS Big Sur  │ 11.7.8  │ 20G1351 │ 12.42 GB │ 2023-06-28 │ True       │
│ 032-82176  │ macOS Big Sur  │ 11.7.7  │ 20G1345 │ 12.42 GB │ 2023-05-18 │ True       │
│ 032-71551  │ macOS Big Sur  │ 11.7.6  │ 20G1231 │ 12.42 GB │ 2023-04-17 │ True       │
│ 032-63762  │ macOS Big Sur  │ 11.7.5  │ 20G1225 │ 12.42 GB │ 2023-03-27 │ True       │
│ 012-08272  │ macOS Big Sur  │ 11.6.6  │ 20G624  │ 12.42 GB │ 2022-05-24 │ True       │
│ 002-77154  │ macOS Big Sur  │ 11.6.5  │ 20G527  │ 12.42 GB │ 2022-04-11 │ True       │
│ 002-65695  │ macOS Big Sur  │ 11.6.4  │ 20G417  │ 12.45 GB │ 2022-02-17 │ True       │
│ 002-57023  │ macOS Big Sur  │ 11.6.3  │ 20G415  │ 12.44 GB │ 2022-01-26 │ True       │
│ 002-42341  │ macOS Big Sur  │ 11.6.2  │ 20G314  │ 12.44 GB │ 2022-01-14 │ True       │
│ 002-23589  │ macOS Big Sur  │ 11.6.1  │ 20G224  │ 12.43 GB │ 2021-12-01 │ True       │
│ 071-78704  │ macOS Big Sur  │ 11.5.2  │ 20G95   │ 12.45 GB │ 2021-08-18 │ True       │
│ 001-68446  │ macOS Catalina │ 10.15.7 │ 19H15   │ 08.75 GB │ 2020-11-11 │ True       │
│ 001-51042  │ macOS Catalina │ 10.15.7 │ 19H2    │ 08.75 GB │ 2020-09-24 │ True       │
│ 001-36801  │ macOS Catalina │ 10.15.6 │ 19G2021 │ 08.75 GB │ 2020-08-12 │ True       │
└────────────┴────────────────┴─────────┴─────────┴──────────┴────────────┴────────────┘

2023-08-24 13:34:46 | v30.0 | [finish] Script exit code: 0

Environment (please complete the following information):

Additional context This is due to mist-cli using all seed catalogs by default.

grahampugh commented 1 year ago

Please try https://github.com/grahampugh/erase-install/releases/tag/v30.2

NikThanki commented 1 year ago

Hi Graham, I have tested your 30.2 version and it now excludes the 13.6 installer! Great work!