Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pmodules
src
Commits
fe1ab6d3
Commit
fe1ab6d3
authored
Jan 15, 2020
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: broken sub-cmd unload fixed
parent
9aa3fb04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Pmodules/modulecmd.bash.in
Pmodules/modulecmd.bash.in
+6
-3
No files found.
Pmodules/modulecmd.bash.in
View file @
fe1ab6d3
...
...
@@ -594,11 +594,14 @@ subcommand_unload() {
for
arg
in
"
${
args
[@]
}
"
;
do
local
output
=
$(
"
${
modulecmd
}
"
"
${
Shell
}
"
'unload'
"
${
arg
}
"
)
eval
"
${
output
}
"
if
[[
"
${
Shell
}
"
==
"bash"
]]
;
then
case
${
Shell
}
in
sh
|
bash
|
zsh
)
echo
"
${
output
}
"
else
;;
*
)
"
${
modulecmd
}
"
"
${
Shell
}
"
'unload'
"
${
arg
}
"
fi
;;
esac
done
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment