From c41dcbcdee7d061a16234b32e8c94869318000cc Mon Sep 17 00:00:00 2001 From: Tw93 Date: Tue, 3 Mar 2026 07:52:51 +0000 Subject: [PATCH] chore: auto format code --- bin/clean.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/clean.sh b/bin/clean.sh index dd8644c..20b0bd7 100755 --- a/bin/clean.sh +++ b/bin/clean.sh @@ -1028,10 +1028,10 @@ perform_cleanup() { # ============================================ # Dynamic size formatting (KB → MB → GB) # ============================================ - if (( total_size_cleaned < 1024 )); then + if ((total_size_cleaned < 1024)); then freed_value="$total_size_cleaned" freed_unit="KB" - elif (( total_size_cleaned < 1024 * 1024 )); then + elif ((total_size_cleaned < 1024 * 1024)); then freed_value=$(printf "%.2f" "$(echo "scale=4; $total_size_cleaned/1024" | bc)") freed_unit="MB" else @@ -1073,8 +1073,8 @@ perform_cleanup() { summary_details+=("$summary_line") # Movie comparison only if unit is GB and >= 1GB - if [[ "$freed_unit" == "GB" ]] && \ - [[ $(echo "$freed_value >= 1" | bc) -eq 1 ]]; then + if [[ "$freed_unit" == "GB" ]] && + [[ $(echo "$freed_value >= 1" | bc) -eq 1 ]]; then local movies movies=$(printf "%.0f" "$(echo "scale=2; $freed_value/4.5" | bc)")