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

fix(clean): handle singular 4K movie summary (#376)

This commit is contained in:
Gokul
2026-01-27 05:42:54 -06:00
committed by GitHub
parent 736bca14b5
commit 9a109b2b39

View File

@@ -1046,7 +1046,11 @@ perform_cleanup() {
local movies
movies=$(echo "$freed_gb" | awk '{printf "%.0f", $1/4.5}')
if [[ $movies -gt 0 ]]; then
summary_details+=("Equivalent to ~$movies 4K movies of storage.")
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