diff --git a/bin/optimize.sh b/bin/optimize.sh index afe5fb9..e4e21b8 100755 --- a/bin/optimize.sh +++ b/bin/optimize.sh @@ -400,11 +400,13 @@ main() { # Display active whitelist patterns if [[ ${#CURRENT_WHITELIST_PATTERNS[@]} -gt 0 ]]; then - local patterns_list=$( - local IFS=', ' - echo "${CURRENT_WHITELIST_PATTERNS[*]}" - ) - echo -e "${ICON_ADMIN} Active Whitelist: ${patterns_list}" + local count=${#CURRENT_WHITELIST_PATTERNS[@]} + if [[ $count -le 3 ]]; then + local patterns_list=$(IFS=', '; echo "${CURRENT_WHITELIST_PATTERNS[*]}") + echo -e "${ICON_ADMIN} Active Whitelist: ${patterns_list}" + else + echo -e "${ICON_ADMIN} Active Whitelist: ${GRAY}${count} items${NC}" + fi fi echo "" # Empty line before sudo prompt diff --git a/bin/status-go b/bin/status-go index 2bd4dcc..ebc2c57 100755 Binary files a/bin/status-go and b/bin/status-go differ diff --git a/cmd/status/view.go b/cmd/status/view.go index f3733ba..c3a5bc3 100644 --- a/cmd/status/view.go +++ b/cmd/status/view.go @@ -201,7 +201,7 @@ func renderHeader(m MetricsSnapshot, errMsg string, animFrame int, termWidth int if errMsg != "" { return lipgloss.JoinVertical(lipgloss.Left, headerLine, "", mole, dangerStyle.Render(errMsg), "") } - return headerLine + "\n\n" + mole + return headerLine + "\n" + mole } func getScoreStyle(score int) lipgloss.Style { diff --git a/lib/check/health_json.sh b/lib/check/health_json.sh index 7428384..cd69035 100644 --- a/lib/check/health_json.sh +++ b/lib/check/health_json.sh @@ -127,7 +127,7 @@ EOF items+=('recent_items|Recent Items|Clear recent apps/documents/servers lists|true') items+=('log_cleanup|Diagnostics Cleanup|Purge old diagnostic & crash logs|true') items+=('startup_cache|Startup Cache Rebuild|Rebuild kext caches & prelinked kernel|true') - items+=('spotlight_cache_cleanup|Spotlight Cache Cleanup|Clear CoreSpotlight user cache|false') + items+=('spotlight_cache_cleanup|Spotlight Cache Cleanup|Clear CoreSpotlight user cache|true') # Output items as JSON local first=true