From 0db66e65a90515951be3bffa57d67ab6eb87abed Mon Sep 17 00:00:00 2001
From: Sylvester Joosten <sjoosten@anl.gov>
Date: Wed, 21 Apr 2021 04:06:27 +0000
Subject: [PATCH] minor bugfix

---
 util/build_detector.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/build_detector.sh b/util/build_detector.sh
index c8ce9335..aab1ed00 100755
--- a/util/build_detector.sh
+++ b/util/build_detector.sh
@@ -42,7 +42,7 @@ git clone -b ${JUGGLER_DETECTOR_VERSION} https://eicweb.phy.anl.gov/EIC/detector
 #fi
 ## We also need an up-to-date copy of the accelerator. For now this is done
 ## manually. Down the road we could maybe automize this with cmake
-if [ ! -d accelerator ]; then
+if [ -d accelerator ]; then
   echo "cleaning up accelerator"
   rm -rf accelerator
 fi
-- 
GitLab