1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-10 03:49:17 +00:00
This commit is contained in:
Tw93
2025-11-25 17:25:13 +08:00
parent 2830eb69ca
commit e517bf4a3e
16 changed files with 331 additions and 326 deletions

View File

@@ -73,7 +73,7 @@ run_system_checks() {
show_optimization_summary() {
local safe_count="${OPTIMIZE_SAFE_COUNT:-0}"
local confirm_count="${OPTIMIZE_CONFIRM_COUNT:-0}"
if (( safe_count == 0 && confirm_count == 0 )) && [[ -z "${AUTO_FIX_SUMMARY:-}" ]]; then
if ((safe_count == 0 && confirm_count == 0)) && [[ -z "${AUTO_FIX_SUMMARY:-}" ]]; then
return
fi
echo ""
@@ -104,7 +104,6 @@ show_optimization_summary() {
print_summary_block "success" "$summary_title" "${summary_details[@]}"
}
show_system_health() {
local health_json="$1"
@@ -315,7 +314,6 @@ perform_security_fixes() {
SECURITY_FIXES=()
}
cleanup_all() {
stop_sudo_session
cleanup_temp_files