1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 14:26:46 +00:00

chore: auto format code

This commit is contained in:
Tw93
2026-01-13 06:17:41 +00:00
parent 5b51007c3f
commit 4d3a97903a

View File

@@ -98,10 +98,10 @@ perform_purge() {
# Function to truncate path in the middle
truncate_path() {
local path="$1"
local term_width=$(tput cols 2>/dev/null || echo 80)
local term_width=$(tput cols 2> /dev/null || echo 80)
# Reserve space: "| Scanning " = 12 chars, spinner = 2 chars, margins = 4 chars
local max_len=$((term_width - 18))
# Minimum length to avoid too short
[[ $max_len -lt 40 ]] && max_len=40