From e7d0d7ec1537b609c3eba6b39b9f1096fff9bac2 Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Thu, 7 Jan 2021 10:20:06 -0600
Subject: [PATCH] Fix bdbag fetch script bool

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

diff --git a/workflow/scripts/bdbag_fetch.sh b/workflow/scripts/bdbag_fetch.sh
index c2c1ff8..88a37da 100644
--- a/workflow/scripts/bdbag_fetch.sh
+++ b/workflow/scripts/bdbag_fetch.sh
@@ -3,7 +3,7 @@
 bdbag --materialize ${1} --debug
 validateError=true
 bdbag --validate full ${1} && validateError=false
-if [ ${validateError} ]
+if [ "${validateError}" == true ]
 then
     n=0
     until [ "${n}" -ge "3" ]
@@ -13,7 +13,7 @@ then
         sleep 15
     done
 fi
-if [ ${validateError} ]
+if [ "${validateError}" == true ]
 then
     exit 1
 fi
-- 
GitLab