Skip to content

Commit

Permalink
only set $EESSI_MODULEPATH_ACCEL if directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Oct 3, 2024
1 parent b04cc29 commit d9bca16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions init/eessi_environment_variables
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ if [ -d $EESSI_PREFIX ]; then
false
fi

EESSI_MODULEPATH_ACCEL=${EESSI_ACCEL_SOFTWARE_PATH}/${EESSI_ACCEL_SUBDIR}/${EESSI_MODULE_SUBDIR}
if [ -d ${EESSI_MODULEPATH_ACCEL} ]; then
export EESSI_MODULEPATH_ACCEL=${EESSI_MODULEPATH_ACCEL}
if [ -d ${EESSI_ACCEL_SOFTWARE_PATH}/${EESSI_ACCEL_SUBDIR}/${EESSI_MODULE_SUBDIR} ]; then
export EESSI_MODULEPATH_ACCEL=${EESSI_ACCEL_SOFTWARE_PATH}/${EESSI_ACCEL_SUBDIR}/${EESSI_MODULE_SUBDIR}
show_msg "Using ${EESSI_MODULEPATH_ACCEL} as additional directory (for accelerators) to be added to MODULEPATH."
fi

Expand Down

0 comments on commit d9bca16

Please sign in to comment.