From fd7f3a8cf1e8b16706330ff05767aefa0d5997e6 Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Sat, 7 Oct 2023 05:34:52 +0000
Subject: [PATCH] Cleaning up env file

---
 .gitlab-ci.yml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 737b5e76..aa5d4a16 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,8 +6,6 @@ variables:
   DETECTOR_CONFIG: epic_craterlake
   DETECTOR_REPOSITORYURL: 'https://github.com/eic/epic.git'
 
-
-
 default:
   before_script:
     - source .local/bin/env.sh
@@ -71,12 +69,13 @@ common:setup:
   stage: config
   before_script:
     - |
-      if [[ "${COMMON_BENCH_VERSION}" == "" ]] ; then
+      if [[ -z "${COMMON_BENCH_VERSION}" ]] ; then
         export COMMON_BENCH_VERSION="master" 
       fi
       echo "COMMON_BENCH_VERSION = ${COMMON_BENCH_VERSION}" 
-      git clone -b "${COMMON_BENCH_VERSION}" https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup 
+      echo "COMMON_BENCH_VERSION=${COMMON_BENCH_VERSION}" >> .env
   script:
+    - git clone -b "${COMMON_BENCH_VERSION}" https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup 
     - source setup/bin/env.sh && ./setup/bin/install_common.sh
 
 common:detector:
-- 
GitLab