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:
@@ -1046,7 +1046,11 @@ perform_cleanup() {
|
|||||||
local movies
|
local movies
|
||||||
movies=$(echo "$freed_gb" | awk '{printf "%.0f", $1/4.5}')
|
movies=$(echo "$freed_gb" | awk '{printf "%.0f", $1/4.5}')
|
||||||
if [[ $movies -gt 0 ]]; then
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user