Skip to content

Commit

Permalink
scripts/config: Fix wrong "shift" for --keep-case
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
hdoyu authored and michal42 committed Dec 14, 2012
1 parent 923e02e commit c6ba8d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/config
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ while [ "$1" != "" ] ; do
case "$CMD" in
--keep-case|-k)
MUNGE_CASE=no
shift
continue
;;
--refresh)
Expand Down

0 comments on commit c6ba8d0

Please sign in to comment.