From e5ffe576e032738060f0c9b5ced5e9dc9b065f32 Mon Sep 17 00:00:00 2001 From: Simon Stelling Date: Thu, 13 Apr 2006 17:59:44 +0000 Subject: [PATCH] exit if user hits the cancel button in dialog mode; bug 108137 svn path=/main/trunk/; revision=3141 --- bin/etc-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/etc-update b/bin/etc-update index f39801894..a8bf13325 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -139,7 +139,7 @@ configuration file is followed by a list of possible replacement files." else dialog --title "${title}" --menu "${my_title}" \ 0 0 0 $(echo -e "-1 Exit\n$(<${TMP}/menuitems)") \ - 2> ${TMP}/input + 2> ${TMP}/input || die "User termination!" 0 input=$(<${TMP}/input) fi if (( ${input} == -5 )); then @@ -193,7 +193,7 @@ function do_file() { else dialog --title "${title}" --menu "${my_title}" \ 0 0 0 `echo -e "$(<${TMP}/menuitems)\n${fcount} Exit"` \ - 2> ${TMP}/input + 2> ${TMP}/input || die "User termination!" 0 my_input=$(<${TMP}/input) fi fi # OVERWRITE_ALL -- 2.26.2