Skip to content

[BUG] --help output out of date #577

Description

@Artos254

Describe the bug
--help output states os name can be used in the --os argument, this is no longer the case. Supplying "Tahoe" instead of "26" causes the script to not discover the version of InstallAssistant to download.

To Reproduce

  • /Library/Management/erase-install/erase-install.sh --reinstall --replace-invalid --os Tahoe --check power --min-battery 30 --no-timeout --check-power --power-wait-limit 900 --max-password-attempts infinite --rebootdelay 120 --postinstall-command "jamf recon" vs /Library/Management/erase-install/erase-install.sh --reinstall --replace-invalid --os 26 --check power --min-battery 30 --no-timeout --check-power --power-wait-limit 900 --max-password-attempts infinite --rebootdelay 120 --postinstall-command "jamf recon"
  • Standalone in Terminal

Expected behavior
See above, covered already.

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:

2026-01-28 09:48:47 | v40.4 | [log_rotate] Finished rotating logs in /Library/Management/erase-install/log
2026-01-28 09:48:47 | v40.4 | [erase-install] v40.4 script execution started: Wed Jan 28 09:48:47 CST 2026
2026-01-28 09:48:47 | v40.4 | [erase-install] Arguments provided: --test-run --reinstall --replace-invalid --os Tahoe --check power --min-battery 30 --no-timeout --check-power --power-wait-limit 900 --max-password-attempts infinite --rebootdelay 120 --postinstall-command jamf recon --native
2026-01-28 09:48:47 | v40.4 | *** TEST-RUN ONLY! ***
2026-01-28 09:48:47 | v40.4 | * This script will perform all tasks up to the point of erase or reinstall,
2026-01-28 09:48:47 | v40.4 | * but will not actually erase or reinstall.
2026-01-28 09:48:47 | v40.4 | * Remove the --test-run argument to perform the erase or reinstall.
2026-01-28 09:48:47 | v40.4 | **********************
2026-01-28 09:48:48 | v40.4 | [set_localisations] Set language to en-US
2026-01-28 09:48:48 | v40.4 | [erase-install] System version: 15.7.1 (Build: 24G231)
2026-01-28 09:48:48 | v40.4 | [check_for_swiftdialog_app] swiftDialog binary v2.5.6.4805 is installed (/Library/Management/erase-install/Dialog.app/Contents/MacOS/Dialog)
2026-01-28 09:48:48 | v40.4 | [check_for_swiftdialog_app] Creating dialog log (/var/tmp/dialog.CsU)...
2026-01-28 09:48:48 | v40.4 | [erase-install] jq is installed, proceeding with --native mode.
2026-01-28 09:48:48 | v40.4 | [erase-install] Caffeinating this script (pid=9228)
2026-01-28 09:48:48 | v40.4 | [check_free_space] OK - 510 GB free/purgeable disk space detected
2026-01-28 09:48:48 | v40.4 | [erase-install] Looking for existing installer app or pkg
2026-01-28 09:48:48 | v40.4 | [find_existing_installer] No valid installer found.
2026-01-28 09:48:48 | v40.4 | [erase-install] Running on architecture arm64
2026-01-28 09:48:48 | v40.4 | [get_user_details] ask for user credentials (attempt 1/infinite)
2026-01-28 09:48:48 | v40.4 | [get_default_dialog_args] Invoking utility dialog
yes alex.sanchez is a member of everyone
2026-01-28 09:48:55 | v40.4 | [get_user_details] alex.sanchez is a Volume Owner
2026-01-28 09:48:55 | v40.4 | [check_password] Success: the password entered is the correct login password for alex.sanchez.
2026-01-28 09:48:55 | v40.4 | [check_power_status] OK - AC power detected
2026-01-28 09:48:55 | v40.4 | [get_default_dialog_args] Invoking utility dialog
2026-01-28 09:48:56 | v40.4 | [list_installers_from_json] No catalog URL specified, using default catalog based on Darwin version
2026-01-28 09:48:56 | v40.4 | [get_installers_list_json] Downloading catalog...
2026-01-28 09:48:56 | v40.4 | [get_installers_list_json] Catalog already downloaded, ensure the identifier is .plist
2026-01-28 09:48:56 | v40.4 | [get_installers_list_json] Please wait while we process the catalog...
2026-01-28 09:48:56 | v40.4 | [get_installers_list_json] Processing 621 products with max 8 concurrent jobs
2026-01-28 09:49:09 | v40.4 | [get_installers_list_json] Waiting for all background jobs to complete...
2026-01-28 09:49:09 | v40.4 | [get_installers_list_json] All background jobs completed after 0s
2026-01-28 09:49:11 | v40.4 | [get_installers_list_json] Combining 14 product JSON files into /Library/Management/erase-install/downloads/index-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.products.json
2026-01-28 09:49:11 | v40.4 | [get_installers_list_json] JSON file created at /Library/Management/erase-install/downloads/index-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.products.json
2026-01-28 09:49:11 | v40.4 | [get_installers_list_json] Removing temporary JSON file /Library/Management/erase-install/downloads/products_tmp.json
2026-01-28 09:49:11 | v40.4 | [list_installers_from_json] Listing stable installers only.
2026-01-28 09:49:11 | v40.4 | [list_installers_from_json] Available installers:
┌────────────┬──────────────────┬─────────┬──────────┬──────────┬────────────┬────────────┐
│ PRODUCT ID │ TITLE            │ VERSION │ BUILD    │ SIZE GB  │ DATE       │ COMPATIBLE │
├────────────┼──────────────────┼─────────┼──────────┼──────────┼────────────┼────────────┤
│ 093-37361  │ macOS Tahoe      │ 26.2    │ 25C56    │ 16.18    │ 2026-01-08 │ True       │
│ 089-04325  │ macOS Tahoe      │ 26.1    │ 25B78    │ 16.10    │ 2025-11-03 │ True       │
│ 093-50844  │ macOS Tahoe      │ 26.0.1  │ 25A362   │ 15.78    │ 2025-09-29 │ True       │
│ 093-49299  │ macOS Tahoe      │ 26.0.1  │ 25A8364  │ 13.39    │ 2025-10-20 │ False      │
│ 082-71738  │ macOS Tahoe      │ 26.0    │ 25A8353  │ 13.39    │ 2025-10-18 │ False      │
│ 089-70987  │ macOS Sequoia    │ 15.7.3  │ 24G419   │ 14.57    │ 2026-01-08 │ True       │
│ 093-99065  │ macOS Sequoia    │ 15.7.2  │ 24G325   │ 14.57    │ 2025-11-03 │ True       │
│ 093-52107  │ macOS Sequoia    │ 15.7.1  │ 24G231   │ 14.57    │ 2025-09-29 │ True       │
│ 089-71265  │ macOS Sonoma     │ 14.8.3  │ 23J220   │ 12.72    │ 2026-01-08 │ True       │
│ 093-92756  │ macOS Sonoma     │ 14.8.2  │ 23J126   │ 12.71    │ 2025-11-03 │ True       │
│ 093-53928  │ macOS Sonoma     │ 14.8.1  │ 23J30    │ 12.71    │ 2025-09-29 │ True       │
│ 093-22004  │ macOS Ventura    │ 13.7.8  │ 22H730   │ 11.36    │ 2025-08-27 │ True       │
│ 052-60131  │ macOS Monterey   │ 12.7.4  │ 21H1123  │ 11.55    │ 2024-03-18 │ False      │
│ 042-45246  │ macOS Big Sur    │ 11.7.10 │ 20G1427  │ 11.56    │ 2023-09-11 │ False      │
└────────────┴──────────────────┴─────────┴──────────┴──────────┴────────────┴────────────┘
2026-01-28 09:49:11 | v40.4 | [download_install_assistant_pkg] Checking for the latest compatible InstallAssistant.pkg for macOS Tahoe
2026-01-28 09:49:11 | v40.4 | [download_install_assistant_pkg] ERROR: No compatible version for macOS Tahoe found in /Library/Management/erase-install/downloads/index-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.products.json
2026-01-28 09:49:11 | v40.4 | [erase-install] terminating the process 'caffeinate' process (9291)...
2026-01-28 09:49:11 | v40.4 | [finish] sending quit message to dialog (/var/tmp/dialog.CsU)
2026-01-28 09:49:12 | v40.4 | [finish] Script exit code: 1

Environment (please complete the following information):

  • 15.7.1 - erase-install version 39.1 and 40.4 - please upgrade to the latest version before submitting a bug report.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

addressed in pre-releaseThis is addressed in the latest pre-releasebugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions