mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 18:10:17 +00:00
fix(clean): handle singular 4K movie summary (#376)
This commit is contained in:
@@ -1046,9 +1046,13 @@ perform_cleanup() {
|
||||
local movies
|
||||
movies=$(echo "$freed_gb" | awk '{printf "%.0f", $1/4.5}')
|
||||
if [[ $movies -gt 0 ]]; then
|
||||
if [[ $movies -eq 1 ]]; then
|
||||
summary_details+=("Equivalent to ~$movies 4K movie of storage.")
|
||||
else
|
||||
summary_details+=("Equivalent to ~$movies 4K movies of storage.")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
local final_free_space=$(get_free_space)
|
||||
summary_details+=("Free space now: $final_free_space")
|
||||
|
||||
Reference in New Issue
Block a user