added dynamic phrasing to backup removal

This commit is contained in:
mag37 2025-12-10 18:15:44 +01:00
parent 85ebb0e715
commit 56d0229d6d

View file

@ -279,7 +279,8 @@ remove_backups() {
if [[ "$CleanupCount" == 0 ]]; then
printf "\nNo backup images to remove.\n"
else
printf "\n%b%s%b backup removed.%b\n" "$c_green" "$CleanupCount" "$c_teal" "$c_reset"
[[ "$CleanupCount" -gt 1 ]] && b_phrase="backups" || b_phrase="backup"
printf "\n%b%s%b %s removed.%b\n" "$c_green" "$CleanupCount" "$c_teal" "$b_phrase" "$c_reset"
fi
}