mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-19 10:57:45 +00:00
added dynamic phrasing to backup removal
This commit is contained in:
@@ -279,7 +279,8 @@ remove_backups() {
|
|||||||
if [[ "$CleanupCount" == 0 ]]; then
|
if [[ "$CleanupCount" == 0 ]]; then
|
||||||
printf "\nNo backup images to remove.\n"
|
printf "\nNo backup images to remove.\n"
|
||||||
else
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user