From: Mike Frysinger Date: Sun, 11 Mar 2012 03:23:25 +0000 (-0500) Subject: etc-update: fix default "enter" behavior X-Git-Tag: v2.2.0_alpha91~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a78ec9a7e6b4a0dd6e565913db35e436f67553ff;p=portage.git 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 --- 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