mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 18:13:08 +02:00
Pmodules/modulecmd.bash.in: fixing #26
This commit is contained in:
@@ -1930,13 +1930,22 @@ while (( $# > 0 )); do
|
||||
opts+=( "$1" )
|
||||
;;
|
||||
* )
|
||||
subcommand="$1"
|
||||
if [[ -z "${Subcommands[$1]}" ]]; then
|
||||
std::die 1 "${CMD}: unknown sub-command -- $1"
|
||||
fi
|
||||
subcommand="$1"
|
||||
shift
|
||||
opts+=( "$@" )
|
||||
shift $#
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
while (( $# > 0 )); do
|
||||
case "$1" in
|
||||
-- )
|
||||
;;
|
||||
* )
|
||||
opts+=( "$1" )
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
|
||||
Reference in New Issue
Block a user