diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-10 22:23:25 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-10 22:23:25 -0500 |
commit | a78ec9a7e6b4a0dd6e565913db35e436f67553ff (patch) | |
tree | ddb4c877f5dc3feb92daf5b9dcf84f91cdde53f4 | |
parent | 2b3f235988b45c3c11d57fedad12587b1536fdac (diff) | |
download | portage-a78ec9a7e6b4a0dd6e565913db35e436f67553ff.tar.gz portage-a78ec9a7e6b4a0dd6e565913db35e436f67553ff.tar.bz2 portage-a78ec9a7e6b4a0dd6e565913db35e436f67553ff.zip |
etc-update: fix default "enter" behavior
Adding support for -[3579] command line flags inadvertently broke the
default behavior of hitting "enter" to automatically select the next
file. Make this work again.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | bin/etc-update | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/etc-update b/bin/etc-update index cd63ae14b..7b05f1137 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -236,10 +236,13 @@ sel_file() { || die "$(<"${TMP}"/input)\n\nUser termination!" 0 input=$(<"${TMP}"/input) fi + : ${input:=0} - parse_automode_flag ${input} || continue + if [[ ${input} != 0 ]] ; then + parse_automode_flag ${input} || continue + fi fi # -3 automerge - if [[ ${input:-0} == 0 ]] ; then + if [[ ${input} == 0 ]] ; then input=${isfirst} fi done |