Commit d3d02d76 authored by gsell's avatar gsell
Browse files

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

Resolve "modulecmd: switch sub-cmd need tmpfile"

Closes #120

See merge request !89
parents adcfbd54 69bcb98a
......@@ -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!"
;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment