mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 17:24:45 +00:00
Tweak macOS update detection and bump version
This commit is contained in:
@@ -265,9 +265,11 @@ check_macos_update() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Prefer avoiding false negatives: if the system indicates updates are pending,
|
# Prefer avoiding false negatives: if the system indicates updates are pending,
|
||||||
# only clear the flag when softwareupdate explicitly reports no updates.
|
# only clear the flag when softwareupdate returns a list without any update entries.
|
||||||
if [[ $sw_status -eq 0 && -n "$sw_output" ]] && echo "$sw_output" | grep -qE '^\s*No new software available\s*\.?\s*$'; then
|
if [[ $sw_status -eq 0 && -n "$sw_output" ]]; then
|
||||||
updates_available="false"
|
if ! echo "$sw_output" | grep -qE '^[[:space:]]*\*'; then
|
||||||
|
updates_available="false"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
2
mole
2
mole
@@ -25,7 +25,7 @@ source "$SCRIPT_DIR/lib/core/common.sh"
|
|||||||
trap cleanup_temp_files EXIT INT TERM
|
trap cleanup_temp_files EXIT INT TERM
|
||||||
|
|
||||||
# Version info
|
# Version info
|
||||||
VERSION="1.15.5"
|
VERSION="1.15.6"
|
||||||
MOLE_TAGLINE="Deep clean and optimize your Mac."
|
MOLE_TAGLINE="Deep clean and optimize your Mac."
|
||||||
|
|
||||||
# Check TouchID configuration
|
# Check TouchID configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user