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
0f08af57
Commit
0f08af57
authored
Apr 08, 2015
by
gsell
Browse files
scripts/Bootstrap/Pmodules/bash:
- bugfix in handling sub-command without arguments
parent
6eeb0a2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
scripts/Bootstrap/Pmodules/bash
scripts/Bootstrap/Pmodules/bash
+6
-5
No files found.
scripts/Bootstrap/Pmodules/bash
View file @
0f08af57
...
...
@@ -52,12 +52,13 @@ module() {
if
[[
${
subcommand
}
==
''
]]
;
then
subcommand
=
'help'
fi
if
((
${#
args
}
==
0
))
;
then
args+
=(
''
)
if
((
${#
args
[@]
}
==
0
))
;
then
eval
$(
"
${
modulecmd
}
"
bash
${
switches
[@]
}
"
${
subcommand
}
"
"
${
sub_switches
[@]
}
"
)
else
for
arg
in
"
${
args
[@]
}
"
;
do
eval
$(
"
${
modulecmd
}
"
bash
${
switches
[@]
}
"
${
subcommand
}
"
"
${
sub_switches
[@]
}
"
"
${
arg
}
"
)
done
fi
for
arg
in
"
${
args
[@]
}
"
;
do
eval
$(
"
${
modulecmd
}
"
bash
${
switches
[@]
}
"
${
subcommand
}
"
"
${
sub_switches
[@]
}
"
"
${
arg
}
"
)
done
}
export
-f
module
...
...
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