mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-13 00:20:51 +02:00
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:
@@ -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!"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user