Skip to content

Commit

Permalink
Guard against $EESSI_COMPAT_LAYER being undefined
Browse files Browse the repository at this point in the history
Co-authored-by: Kenneth Hoste <kenneth.hoste@ugent.be>
  • Loading branch information
Neves-P and boegel authored Oct 4, 2024
1 parent 8838129 commit 1afc599
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion init/minimal_eessi_env
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ fi
export EESSI_CPU_FAMILY=$(uname -m)

# set $EPREFIX since that is basically a standard in Gentoo Prefix
export EPREFIX=$EESSI_COMPAT_LAYER_DIR
# if $EESSI_COMPAT_LAYER_DIR is defined (for example by run_in_compat_layer_env.sh script), we use that value
if [ ! -z ${EESSI_COMPAT_LAYER_DIR} ]; then
export EPREFIX=$EESSI_COMPAT_LAYER_DIR
else
export EPREFIX=$EESSI_PREFIX/compat/$EESSI_OS_TYPE/$EESSI_CPU_FAMILY
fi

0 comments on commit 1afc599

Please sign in to comment.