Commit 57a9c7609d7418ce75324df38f66cd7d937a77cb

Authored by Clement Chauplannaz
Committed by Yann E. MORIN
1 parent f722406faa

scripts/config: fix assignment of parameters for short version of --*-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 <chauplac@gmail.com>
Acked-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -105,7 +105,7 @@
105 105 ;;
106 106 --refresh)
107 107 ;;
108   - --*-after)
  108 + --*-after|-E|-D|-M)
109 109 checkarg "$1"
110 110 A=$ARG
111 111 checkarg "$2"