Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

Commit 3995263

Browse files
committed
ci: add more date format when grafiti apply the cleanning
1 parent 1a49fbb commit 3995263

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

installer/scripts/maintenance/clean-aws.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ fi
128128
if [ -z "$tag_file" ]; then
129129
tag_file="$(mktemp -p "$tmp_dir")"
130130

131-
date_string="$(date "+%Y-%m-%d" -d "-1 day")\",\"$(date "+%Y-%-m-%-d" -d "-1 day")\",\"$(date +%Y-%m-%d)\",\"$(date +%Y-%-m-%-d)"
131+
date_string="$(date "+%Y-%m-%d" -d "-1 day")\",\"$(date "+%Y-%-m-%-d" -d "-1 day")\",
132+
\"$(date "+%m-%-d-%-Y" -d "-1 day")\",\"$(date "+%-m-%-d-%-Y" -d "-1 day")\",\"$(date "+%d-%m-%-Y" -d "-1 day")\",
133+
\"$(date "+%d-%-m-%-Y" -d "-1 day")\",\"$(date +%m-%d-%Y)\",\"$(date +%d-%m-%Y)\",
134+
\"$(date +%d-%-m-%Y)\",\"$(date +%Y-%m-%d)\",\"$(date +%Y-%-m-%-d)"
132135
if [ -n "$date_override" ]; then
133136
date_string="$date_override"
134137
fi

0 commit comments

Comments
 (0)