1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-14 18:47:28 +00:00

Update output icons for Homebrew cleanup to match the new design system

This commit is contained in:
Tw93
2025-12-27 10:16:52 +08:00
parent 6323a45f37
commit 50c1b0146d

View File

@@ -8,7 +8,7 @@ clean_homebrew() {
# Dry run mode - just indicate what would happen # Dry run mode - just indicate what would happen
if [[ "${DRY_RUN:-false}" == "true" ]]; then if [[ "${DRY_RUN:-false}" == "true" ]]; then
echo -e " ${YELLOW}${NC} Homebrew (would cleanup and autoremove)" echo -e " ${YELLOW}${ICON_DRY_RUN}${NC} Homebrew · would cleanup and autoremove"
return 0 return 0
fi fi
@@ -28,7 +28,7 @@ clean_homebrew() {
if [[ $days_diff -lt $cache_valid_days ]]; then if [[ $days_diff -lt $cache_valid_days ]]; then
should_skip=true should_skip=true
echo -e " ${GREEN}${ICON_SUCCESS}${NC} Homebrew (cleaned ${days_diff}d ago, skipped)" echo -e " ${GREEN}${ICON_SUCCESS}${NC} Homebrew · cleaned ${days_diff}d ago, skipped"
fi fi
fi fi
@@ -115,7 +115,7 @@ clean_homebrew() {
if [[ "$skip_cleanup" == "true" ]]; then if [[ "$skip_cleanup" == "true" ]]; then
# Cleanup was skipped due to small cache size # Cleanup was skipped due to small cache size
local size_mb=$((brew_cache_size / 1024)) local size_mb=$((brew_cache_size / 1024))
echo -e " ${GREEN}${ICON_SUCCESS}${NC} Homebrew cleanup (cache ${size_mb}MB, skipped)" echo -e " ${GREEN}${ICON_SUCCESS}${NC} Homebrew cleanup · cache ${size_mb}MB, skipped"
elif [[ "$brew_success" == "true" && -f "$brew_tmp_file" ]]; then elif [[ "$brew_success" == "true" && -f "$brew_tmp_file" ]]; then
local brew_output local brew_output
brew_output=$(cat "$brew_tmp_file" 2> /dev/null || echo "") brew_output=$(cat "$brew_tmp_file" 2> /dev/null || echo "")
@@ -131,7 +131,7 @@ clean_homebrew() {
fi fi
fi fi
elif [[ $elapsed -ge $timeout_seconds ]]; then elif [[ $elapsed -ge $timeout_seconds ]]; then
echo -e " ${YELLOW}${ICON_WARNING}${NC} Homebrew cleanup timed out (run ${GRAY}brew cleanup${NC} manually)" echo -e " ${YELLOW}${ICON_WARNING}${NC} Homebrew cleanup timed out · run ${GRAY}brew cleanup${NC} manually"
fi fi
# Process autoremove output - only show if packages were removed # Process autoremove output - only show if packages were removed
@@ -145,7 +145,7 @@ clean_homebrew() {
echo -e " ${GREEN}${ICON_SUCCESS}${NC} Removed orphaned dependencies (${removed_packages} packages)" echo -e " ${GREEN}${ICON_SUCCESS}${NC} Removed orphaned dependencies (${removed_packages} packages)"
fi fi
elif [[ $elapsed -ge $timeout_seconds ]]; then elif [[ $elapsed -ge $timeout_seconds ]]; then
echo -e " ${YELLOW}${ICON_WARNING}${NC} Autoremove timed out (run ${GRAY}brew autoremove${NC} manually)" echo -e " ${YELLOW}${ICON_WARNING}${NC} Autoremove timed out · run ${GRAY}brew autoremove${NC} manually"
fi fi
# Update cache timestamp on successful completion or when cleanup was intelligently skipped # Update cache timestamp on successful completion or when cleanup was intelligently skipped