From 3281c7b87ec27f950ef10608beedf11ed871a65a Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Thu, 28 Jul 2022 23:59:15 +0000
Subject: [PATCH] fix: implement default DETECTOR variables

---
 bin/env.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/bin/env.sh b/bin/env.sh
index 7e950e9..be93756 100755
--- a/bin/env.sh
+++ b/bin/env.sh
@@ -42,6 +42,20 @@ if [ ! -n  "${BEAMLINE_CONFIG_VERSION}" ] ; then
 fi
 
 
+## Detector package to be used during the benchmark process
+if [ ! -n  "${DETECTOR}" ] ; then 
+  export DETECTOR="ecce"
+fi
+
+if [ ! -n  "${DETECTOR_CONFIG}" ] ; then
+  export DETECTOR_CONFIG="${DETECTOR}"
+fi
+
+if [ ! -n  "${DETECTOR_VERSION}" ] ; then 
+  export DETECTOR_VERSION="main"
+fi
+
+
 ## Detector package to be used during the benchmark process
 if [ ! -n  "${JUGGLER_DETECTOR}" ] ; then 
   export JUGGLER_DETECTOR="ecce"
-- 
GitLab