Skip to content

Commit

Permalink
scripts/config: fix assignment of parameters for short version of --*…
Browse files Browse the repository at this point in the history
…-after options

When --*-after options are used, two parameters are parsed from the
command-line before the adequate function is called:
  - the `before' option, after which the new option will be inserted,
  - the name of the option to enable/disable/modularise.

With the short version of --*-after options (namely -E, -D, -M), the
parsing step is not performed which leads to processing unset variables.

Add options -E, -D, -M to the test that triggers assignment of parameters
for --*-after options.

Signed-off-by: Clement Chauplannaz <[email protected]>
Acked-by: Andi Kleen <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
  • Loading branch information
chauplac authored and yann-morin-1998 committed May 20, 2013
1 parent f722406 commit 57a9c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/config
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ while [ "$1" != "" ] ; do
;;
--refresh)
;;
--*-after)
--*-after|-E|-D|-M)
checkarg "$1"
A=$ARG
checkarg "$2"
Expand Down

0 comments on commit 57a9c76

Please sign in to comment.