fix script
All checks were successful
renovate / renovate (push) Successful in 1m24s
lint-test-helm / helm-lint (push) Successful in 13s

This commit is contained in:
2025-07-09 19:12:00 -05:00
parent 83e6cd027a
commit a4a6f06d51

View File

@@ -229,10 +229,10 @@ backup:
echo ">> Backups prior to '$DATE_RANGE' will be removed" echo ">> Backups prior to '$DATE_RANGE' will be removed"
echo ">> Backups to be removed:" echo ">> Backups to be removed:"
s3cmd ls ${BUCKET}/cl01tl/ | s3cmd ls ${BUCKET}/cl01tl/ |
awk file_match="$FILE_MATCH" '$4 < file_match {print $4}' awk -v file_match="$FILE_MATCH" '$4 < file_match {print $4}'
echo ">> Deleting ..." echo ">> Deleting ..."
s3cmd ls ${BUCKET}/cl01tl/ | s3cmd ls ${BUCKET}/cl01tl/ |
awk file_match="$FILE_MATCH" '$4 < file_match {print $4}' | awk -v file_match="$FILE_MATCH" '$4 < file_match {print $4}' |
while read file; do while read file; do
s3cmd del "$file"; s3cmd del "$file";
done; done;