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 #!/bin/bash
bdbag --materialize ${1} --debug bdbag --materialize ${1} --debug
validateError=true validateError="true"
bdbag --validate full ${1} && validateError=false bdbag --validate full ${1} && validateError="false"
if [ ${validateError} == true ] if [ "${validateError}" == "true" ]
then then
n=0 n=0
until [ "${n}" -ge "3" ] until [ "${n}" -ge "3" ]
do 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)) n=$((n+1))
sleep 15 sleep 15
done done
fi fi
if [ ${validateError} == true ] if [ "${validateError}" == "true" ]
then then
exit 1 exit 1
fi 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