In a function we must not shift positional parameters
This commit is contained in:
parent
96478770eb
commit
32f4547b22
@ -250,7 +250,6 @@ parse_geli_attach_args () {
|
||||
# everything else is dicarded
|
||||
# exit values: 0->NO PASSWORD SET, 1->PASSWORD SET
|
||||
_exit=0
|
||||
shift
|
||||
while getopts :bPva:i:K:l:s: arg; do
|
||||
case ${arg} in
|
||||
b|v|a|i|l|s);; # ignore these
|
||||
@ -270,7 +269,6 @@ parse_gbde_attach_args () {
|
||||
# everything else is discarded
|
||||
# exit values: 0->NO PASSWORD SET, 1->PASSWORD SET
|
||||
_exit=0
|
||||
shift
|
||||
while getopts :iK:f:L:P: arg; do
|
||||
case ${arg} in
|
||||
i|f);; # ignore these
|
||||
|
Loading…
x
Reference in New Issue
Block a user