fix: exclude beta versions from softwareupdate installer list

This commit is contained in:
Tieu Long
2026-04-07 14:56:00 +07:00
parent 3244dbdc5e
commit b3427bf931
+1 -1
View File
@@ -908,7 +908,7 @@ download_modern_macos() {
# Get latest installer version
local selected_version_number
selected_version_number=$(grep -i "$version_name" "$WORK_DIR/installers.txt" | head -1 | sed -n 's/.*Version: \([^,]*\).*/\1/p')
selected_version_number=$(grep -i "$version_name" "$WORK_DIR/installers.txt" | grep -iv "beta" | head -1 | sed -n 's/.*Version: \([^,]*\).*/\1/p')
if [ -z "$selected_version_number" ]; then
log_error "macOS $version_name ($version_num) is not available for download on this system"