Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
ab9edd13
Commit
ab9edd13
authored
Jun 15, 2015
by
gsell
Browse files
scripts/Bootstrap/Pmodules/modulecmd.in: bugfixes in subcommand_unuse()
parent
154d578e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/Bootstrap/Pmodules/modulecmd.in
scripts/Bootstrap/Pmodules/modulecmd.in
+2
-2
No files found.
scripts/Bootstrap/Pmodules/modulecmd.in
View file @
ab9edd13
...
...
@@ -1091,7 +1091,7 @@ subcommand_unuse() {
# ...
# elif is directory
# ...
local
modulfiles_dir
=
"
${
PMODULES_ROOT
}
/
${
arg
}
/
${
PMODULES_MODULEFILES_DIR
}
"
local
modul
e
files_dir
=
"
${
PMODULES_ROOT
}
/
${
arg
}
/
${
PMODULES_MODULEFILES_DIR
}
"
if
is_release
"
${
arg
}
"
;
then
remove_path UsedReleases
"
${
arg
}
"
elif
[[
!
${
arg
}
=
~
*
/
*
]]
&&
[[
-d
${
modulefiles_dir
}
]]
;
then
...
...
@@ -1099,7 +1099,7 @@ subcommand_unuse() {
die 3
"
${
CMD
}
${
0
##_
}
: cannot remove group
${
arg
}
from module path"
fi
remove_path PMODULES_USED_GROUPS
"
${
arg
}
"
dirs_to_remove+
=(
${
modulefiles_dir
}
/
${
arg
}
)
dirs_to_remove+
=(
${
modulefiles_dir
}
)
elif
[[
-d
${
arg
}
]]
;
then
local
normalized_dir
=
$(
cd
"
${
arg
}
"
&&
pwd
)
dirs_to_remove+
=(
${
normalized_dir
}
)
...
...
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