Skip to content
Snippets Groups Projects
Commit 0f810d4d authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Fix bool in bdbag fetch script

parent 9ac7a870
Branches
Tags
2 merge requests!58Develop,!56Resolve "Detect error in inferMetadata for tracking"
Pipeline #8872 passed with stages
in 2 minutes and 32 seconds
#!/bin/bash
bdbag --materialize ${1} --debug
validateError=true
bdbag --validate full ${1} && validateError=false
if [ ${validateError} == true ]
validateError="true"
bdbag --validate full ${1} && validateError="false"
if [ "${validateError}" == "true" ]
then
n=0
until [ "${n}" -ge "3" ]
do
bdbag --resolve-fetch missing --validate full ${1} --debug && validateError=false && break
bdbag --resolve-fetch missing --validate full ${1} --debug && validateError="false" && break
n=$((n+1))
sleep 15
done
fi
if [ ${validateError} == true ]
if [ "${validateError}" == "true" ]
then
exit 1
fi
......
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