mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-14 23:38:15 +01:00
added dynamic phrasing to backup removal
This commit is contained in:
parent
85ebb0e715
commit
56d0229d6d
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue