"features/steps/project/merge_requests.rb" did not exist on "92b3612025d233b174e0caa3532604d4ee48d1ab"
Commit ccfae597 authored by Alain Takoudjou's avatar Alain Takoudjou

resilient: do not search backup.signature in tmp/ folder

if backup.signature is present in tmp/ folder (during push) promise will fail because find return 2 elements and 1 is expected
parent 165f64df
......@@ -26,7 +26,7 @@ md5sum = c6c11db5372150019debb1ce519b907d
[template-pull-backup]
filename = instance-pull-backup.cfg.in
md5sum = 9b87abf464abac03801e8c670a09c5d7
md5sum = e7656ee8b5c8919483d96380833c1b0b
[template-replicated]
filename = template-replicated.cfg.in
......
......@@ -289,7 +289,7 @@ template = inline:
# Error cannot be deduced if files do not exist
cd $${directory:pbs-backup}
if [ ! -f "proof.signature" ]; then exit 0; fi
backup_signature=$(find . -maxdepth 2 -name backup.signature)
backup_signature=$(find . -maxdepth 2 -name backup.signature -not -path "./tmp/*")
if [ -z "$backup_signature" ]; then
exit 0;
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment