Merge branch '120-modulecmd-switch-sub-cmd-need-tmpfile' into 'master'

Resolve "modulecmd: switch sub-cmd need tmpfile"

Closes #120

See merge request Pmodules/src!89
This commit is contained in:
2021-05-11 14:06:30 +02:00
+1 -1
View File
@@ -2283,7 +2283,7 @@ if (( ${#GroupDepths[@]} == 0 )); then
fi
case ${subcommand} in
load|purge|search )
load|purge|search|switch )
declare -r tmpfile=$( ${mktemp} /tmp/Pmodules.XXXXXX ) \
|| std::die 1 "Oops: unable to create tmp file!"
;;