Commit c6ba8d06ecfc1dadcf7f1b54960cf9332ba5ae8d

Authored by Hiroshi Doyu
Committed by Michal Marek
1 parent 923e02ecf3

scripts/config: Fix wrong "shift" for --keep-case

Remove wrong "shift" for --keep-case. There is always "shift" at
beginning of while-loop. No need "shift" at --keep-case just before
"continue" to process next argument.

Now the following works as expected:

./scripts/config -e aAa -k -e bBb -e cCc && tail -3 .config
CONFIG_AAA=y
CONFIG_bBb=y
CONFIG_cCc=y

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>

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

... ... @@ -101,7 +101,6 @@
101 101 case "$CMD" in
102 102 --keep-case|-k)
103 103 MUNGE_CASE=no
104   - shift
105 104 continue
106 105 ;;
107 106 --refresh)