From 2213329822d435256bf0de37a77a41e8ba19d225 Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Fri, 24 May 2024 13:52:52 +0200 Subject: [PATCH] avoid using unset variables --- EESSI-install-software.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EESSI-install-software.sh b/EESSI-install-software.sh index 3baf4feeba..243a0d5d31 100755 --- a/EESSI-install-software.sh +++ b/EESSI-install-software.sh @@ -172,11 +172,11 @@ if [ ! -f ${_lmod_sitepackage_file} ]; then cat -n ${_lmod_sitepackage_file} else echo ">> Updating Lmod SitePackage.lua ..." - export LMOD_PACKAGE_PATH="${EASYBUILD_INSTALLPATH}/.lmod" + export LMOD_PACKAGE_PATH="${_lmod_cfg_dir}" lmod_sitepackage_file="$LMOD_PACKAGE_PATH/SitePackage.lua" sitepackage_changed=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep '^create_lmodsitepackage.py$' > /dev/null; echo $?) if [ ! -f "$lmod_sitepackage_file" ] || [ "${sitepackage_changed}" == '0' ]; then - python3 $TOPDIR/create_lmodsitepackage.py ${EASYBUILD_INSTALLPATH} + python3 $TOPDIR/create_lmodsitepackage.py ${_eessi_software_path} check_exit_code $? "$lmod_sitepackage_file created" "Failed to create $lmod_sitepackage_file" fi echo "just updated '${lmod_sitepackage_file}':"