mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-14 23:38:15 +01:00
colored backup removal message
This commit is contained in:
parent
6b3c2680d4
commit
ef0198871c
1 changed files with 1 additions and 1 deletions
|
|
@ -271,7 +271,7 @@ remove_backups() {
|
||||||
backup_date=${backup_tag%%_*}
|
backup_date=${backup_tag%%_*}
|
||||||
# UNTAGGING HERE
|
# UNTAGGING HERE
|
||||||
if datecheck "$backup_date" "$BackupForDays"; then
|
if datecheck "$backup_date" "$BackupForDays"; then
|
||||||
[[ "$CleanupCount" == 0 ]] && echo "Removing backed up images older then $BackupForDays days."
|
[[ "$CleanupCount" == 0 ]] && printf "\n%bRemoving backed up images older then %s days.%b\n" "$c_blue" "$BackupForDays" "$c_reset"
|
||||||
docker rmi "${repo_name}:${backup_tag}" && ((CleanupCount+=1))
|
docker rmi "${repo_name}:${backup_tag}" && ((CleanupCount+=1))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue