1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 23:50:15 +00:00

chore: auto format code

This commit is contained in:
Tw93
2025-12-28 11:39:34 +00:00
parent da1b5cb8d4
commit 66ad3b34ee
4 changed files with 14 additions and 14 deletions

View File

@@ -137,7 +137,7 @@ clean_deep_system() {
debug_log "Symbolication cache directory found, checking size..."
# Quick size check with timeout (max 5 seconds)
local symbolication_size_mb=""
symbolication_size_mb=$(run_with_timeout 5 du -sm "/System/Library/Caches/com.apple.coresymbolicationd/data" 2>/dev/null | awk '{print $1}')
symbolication_size_mb=$(run_with_timeout 5 du -sm "/System/Library/Caches/com.apple.coresymbolicationd/data" 2> /dev/null | awk '{print $1}')
# Validate that we got a valid size (non-empty and numeric)
if [[ -n "$symbolication_size_mb" && "$symbolication_size_mb" =~ ^[0-9]+$ ]]; then
@@ -170,7 +170,7 @@ clean_deep_system() {
# Clean each path if exists
for ali_path in "${ali_paths[@]}"; do
if sudo test -e "$ali_path" 2>/dev/null; then
if sudo test -e "$ali_path" 2> /dev/null; then
debug_log "Found Aliyun component: $ali_path, removing..."
safe_sudo_remove "$ali_path" && ((ali_cleaned++)) || true
fi