diff --git a/lib/check/all.sh b/lib/check/all.sh index e4e4781..5d1ebb4 100644 --- a/lib/check/all.sh +++ b/lib/check/all.sh @@ -265,9 +265,11 @@ check_macos_update() { fi # Prefer avoiding false negatives: if the system indicates updates are pending, - # only clear the flag when softwareupdate explicitly reports no updates. - if [[ $sw_status -eq 0 && -n "$sw_output" ]] && echo "$sw_output" | grep -qE '^\s*No new software available\s*\.?\s*$'; then - updates_available="false" + # only clear the flag when softwareupdate returns a list without any update entries. + if [[ $sw_status -eq 0 && -n "$sw_output" ]]; then + if ! echo "$sw_output" | grep -qE '^[[:space:]]*\*'; then + updates_available="false" + fi fi fi diff --git a/mole b/mole index e2b0f46..ffb3b72 100755 --- a/mole +++ b/mole @@ -25,7 +25,7 @@ source "$SCRIPT_DIR/lib/core/common.sh" trap cleanup_temp_files EXIT INT TERM # Version info -VERSION="1.15.5" +VERSION="1.15.6" MOLE_TAGLINE="Deep clean and optimize your Mac." # Check TouchID configuration