From 414e014e1a0211d678eff9ba3bb7f7da9de74cb4 Mon Sep 17 00:00:00 2001
From: "Fabian.Jakub" <fabian@jakub.com>
Date: Wed, 17 May 2023 13:27:50 +0200
Subject: [PATCH] fix bash error check

---
 platforms/common/spack_utils.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/platforms/common/spack_utils.sh b/platforms/common/spack_utils.sh
index 3372a90..6ed36cb 100644
--- a/platforms/common/spack_utils.sh
+++ b/platforms/common/spack_utils.sh
@@ -31,7 +31,7 @@ EOF
   if [[ $(spack compiler info ${SPACK_COMPILER}) ]]; then
     echo "Found Compiler $(spack compiler info ${SPACK_COMPILER})"
   else
-    if [[ $(spack load ${SPACK_COMPILER}) ]]; then
+    if $(spack load ${SPACK_COMPILER}); then
       echo "found the compiler ${SPACK_COMPILER} as a spack package at $(spack location --install-dir $SPACK_COMPILER)"
     else
       echo "could not find compiler, will now try to install it... this may take a while"
-- 
GitLab