Skip to content
Snippets Groups Projects
Commit 414e014e authored by Fabian.Jakub's avatar Fabian.Jakub
Browse files

fix bash error check

parent ff2b9c15
No related branches found
No related tags found
No related merge requests found
Pipeline #18703 failed
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment