Skip to content

Commit

Permalink
revert variable expansion and unset certain variables instead
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Oct 15, 2024
1 parent 7b8ba8b commit a95d546
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion EESSI-install-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ fi
# Set all the EESSI environment variables (respecting $EESSI_SOFTWARE_SUBDIR_OVERRIDE)
# $EESSI_SILENT - don't print any messages
# $EESSI_BASIC_ENV - give a basic set of environment variables
EESSI_SILENT= EESSI_BASIC_ENV= source $TOPDIR/init/eessi_environment_variables
unset EESSI_SILENT
unset EESSI_BASIC_ENV
source $TOPDIR/init/eessi_environment_variables

if [[ -z ${EESSI_SOFTWARE_SUBDIR} ]]; then
fatal_error "Failed to determine software subdirectory?!"
Expand Down
2 changes: 1 addition & 1 deletion init/eessi_environment_variables
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function error() {
function show_msg {
# only echo msg if EESSI_SILENT is unset
msg=$1
if [[ -z ${EESSI_SILENT:+x} ]]; then
if [[ -z ${EESSI_SILENT+x} ]]; then
echo "$msg"
fi
}
Expand Down

0 comments on commit a95d546

Please sign in to comment.