mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-19 10:57:45 +00:00
colored backup removal message
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user