scripts/config: Fix wrong "shift" for --keep-case
authorHiroshi Doyu <hdoyu@nvidia.com>
Fri, 14 Dec 2012 06:47:59 +0000 (08:47 +0200)
committerMichal Marek <mmarek@suse.cz>
Fri, 14 Dec 2012 13:16:10 +0000 (14:16 +0100)
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>
scripts/config

index ee355394f4ef76eeb6d6f74dac00729d8cc942e3..bb4d3deb6d1c0add7815115a14a574212c0f3d90 100755 (executable)
@@ -101,7 +101,6 @@ while [ "$1" != "" ] ; do
        case "$CMD" in
        --keep-case|-k)
                MUNGE_CASE=no
-               shift
                continue
                ;;
        --refresh)