Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Unverified Commit 49118601 authored by Idriss's avatar Idriss
Browse files

Fix: condition clean

parent ac9a78e7
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ mirror:
deliver:
stage: deliver
script:
- setsid ./ci/docker-deliver.sh "bucket-backup" "2.6"
- setsid ./ci/docker-deliver.sh "bucket-backup" "2.7"
only:
refs:
- /^(main.*)$/
......
---
backup_max_retention: 3
backup_bucket_image: comworkio/bucket-backup
backup_bucket_image_tag: 2.6
backup_bucket_image_tag: 2.7
bucket_endpoint: changeit
bucket_access_key: changeit
bucket_secret_key: changeit
......
......@@ -73,7 +73,7 @@ clean_folder() {
result=$("${MC_BIN}" ls -r "r${dest}/${folder}${BACKUP_FOLDER}/" 2>&1|wc -l)
if [[ $result -ge 2 ]]; then
if [[ $result -lt 2 ]]; then
echo "[clean_folder] No results found with folder=${folder}"
return
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment