From a3fb3bb054b1f2eeac7fb24280b546181015ef8c Mon Sep 17 00:00:00 2001
From: Giovanni Marchiori <giovanni.marchiori@cern.ch>
Date: Wed, 4 Sep 2024 14:23:01 +0200
Subject: [PATCH] Try one more suggestion by Juraj

---
 RecFCCeeCalorimeter/tests/options/ALLEGRO_o1_v03.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/RecFCCeeCalorimeter/tests/options/ALLEGRO_o1_v03.sh b/RecFCCeeCalorimeter/tests/options/ALLEGRO_o1_v03.sh
index 72d94be6..4fcd6c0f 100755
--- a/RecFCCeeCalorimeter/tests/options/ALLEGRO_o1_v03.sh
+++ b/RecFCCeeCalorimeter/tests/options/ALLEGRO_o1_v03.sh
@@ -2,7 +2,9 @@
 
 # set-up the Key4hep environment if not already set
 if [[ -z "${KEY4HEP_STACK}" ]]; then
-  source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
+  #  source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
+  echo "Error: Key4hep environment not set"
+  return 1
 else
   echo "The Key4hep stack was already loaded in this environment."
 fi