From 8f5a7f7e6d19dc4b0943d9bba23aa37c69f6cbea Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 1 Jun 2023 14:12:40 +0200 Subject: [PATCH] bugfix: exporting PMODULES_ENV --- Pmodules/modulecmd.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index f371268..fedde37 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -134,6 +134,7 @@ save_env() { local s=$(typeset -p ${vars[@]}) declare -gx PMODULES_ENV=$( encode_base64 "$s" ) + export_env 'PMODULES_ENV' } # @@ -141,7 +142,6 @@ save_env() { # _exit() { save_env "${g_env_must_be_saved}" - export_env 'PMODULES_ENV' if [[ -n "${tmpfile}" ]] && [[ -e "${tmpfile}" ]]; then ${rm} -f "${tmpfile}" || : fi