diff options
author | Hiroshi Doyu <hdoyu@nvidia.com> | 2012-12-14 01:47:59 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-12-14 08:16:10 -0500 |
commit | c6ba8d06ecfc1dadcf7f1b54960cf9332ba5ae8d (patch) | |
tree | 0223dfb199b97852dfc22a618203914dd0acf29a | |
parent | 923e02ecf3f8db19d52176723fefa0ffe6e9a3cd (diff) |
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>
-rwxr-xr-x | scripts/config | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/config b/scripts/config index ee355394f4ef..bb4d3deb6d1c 100755 --- a/scripts/config +++ b/scripts/config | |||
@@ -101,7 +101,6 @@ while [ "$1" != "" ] ; do | |||
101 | case "$CMD" in | 101 | case "$CMD" in |
102 | --keep-case|-k) | 102 | --keep-case|-k) |
103 | MUNGE_CASE=no | 103 | MUNGE_CASE=no |
104 | shift | ||
105 | continue | 104 | continue |
106 | ;; | 105 | ;; |
107 | --refresh) | 106 | --refresh) |