From 4d88abf46240ee930ba06cdfa7098037e1a551ec Mon Sep 17 00:00:00 2001 From: uturuncoglu Date: Mon, 14 Aug 2023 15:55:35 -0600 Subject: [PATCH] force to exit if requested gcc is not available --- .github/workflows/scripts/spack_concretize.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scripts/spack_concretize.sh b/.github/workflows/scripts/spack_concretize.sh index a3222fc347..ee486eaedd 100755 --- a/.github/workflows/scripts/spack_concretize.sh +++ b/.github/workflows/scripts/spack_concretize.sh @@ -146,8 +146,8 @@ if [[ "$comp" == *"gcc"* ]]; then echo "The gcc@latest is set. Trying to find latest available gcc compiler ..." use_latest=1 elif [ -z "$(cat ~/.spack/linux/compilers.yaml | grep $comp_str)" ]; then - echo "Given compiler ($comp) is not found! Trying to find latest available gcc compiler ..." - use_latest=1 + echo "Given compiler ($comp) is not found! Exiting ..." + exit 1 fi if [[ $use_latest == 1 ]]; then