From a78ec9a7e6b4a0dd6e565913db35e436f67553ff Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 10 Mar 2012 22:23:25 -0500 Subject: 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 --- bin/etc-update | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin/etc-update') 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 -- cgit v1.2.3-1-g7c22