mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-03 12:20:49 +02:00
modulecmd: create a tmpdile for sub-cmd switch
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