From: Mike Frysinger Date: Sat, 3 Nov 2007 21:13:45 +0000 (-0000) Subject: if mode=1 and `dialog` is not usable, abort #197990 by DominikBuerkle X-Git-Tag: v2.2_pre1~454 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a47bd144a31dc24fcc7810880edfb4e73782d92e;p=portage.git if mode=1 and `dialog` is not usable, abort #197990 by DominikBuerkle svn path=/main/trunk/; revision=8402 --- diff --git a/bin/etc-update b/bin/etc-update index 7239ed07b..bb1160a31 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -541,6 +541,13 @@ else fi fi +if [[ ${mode} == "1" ]] ; then + if ! type dialog >/dev/null || ! dialog --help >/dev/null ; then + echo "ERROR: mode=1 and 'dialog' not found or not executable, aborting" + exit 1 + fi +fi + #echo "rm_opts: $rm_opts, mv_opts: $mv_opts, cp_opts: $cp_opts" #echo "pager: $pager, diff_command: $diff_command, merge_command: $merge_command"