Skip to content

Commit d4ceacc

Browse files
authored
Update EESSI-install-software.sh
1 parent b9cdb1a commit d4ceacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EESSI-install-software.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ fi
288288
# (this must be set _before_ we load EESSI-extend).
289289
# We also make sure that EESSI_ACCELERATOR_TARGET is also set as EESSI_ACCELERATOR_TARGET_OVERRIDE must
290290
# be set before the EESSI module is loaded in order to set accelerator information.
291-
if [[ -n "$EESSI_ACCELERATOR_TARGET_OVERRIDE" && -n "$EESSI_ACCELERATOR_TARGET" ]]; then
291+
if [[ -n "$EESSI_ACCELERATOR_TARGET_OVERRIDE" && -z "$EESSI_ACCELERATOR_TARGET" ]]; then
292292
fatal_error "EESSI module should've set EESSI_ACCELERATOR_TARGET ($EESSI_ACCELERATOR_TARGET) when EESSI_ACCELERATOR_TARGET_OVERRIDE ($EESSI_ACCELERATOR_TARGET_OVERRIDE) exported."
293293
elif [[ -n "$EESSI_ACCELERATOR_TARGET_OVERRIDE" ]]; then
294294
export EESSI_ACCELERATOR_INSTALL=1

0 commit comments

Comments
 (0)