From 0f810d4de9c288c51f41789c3c4b4941eb2555d9 Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Thu, 7 Jan 2021 11:40:41 -0600
Subject: [PATCH] Fix bool in bdbag fetch script

---
 workflow/scripts/bdbag_fetch.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/workflow/scripts/bdbag_fetch.sh b/workflow/scripts/bdbag_fetch.sh
index 5fcea7c..c29217a 100644
--- a/workflow/scripts/bdbag_fetch.sh
+++ b/workflow/scripts/bdbag_fetch.sh
@@ -1,19 +1,19 @@
 #!/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
-- 
GitLab