Check for dialog executeable only when using interactive mode
authorMichael Prokop <mika@grml.org>
Mon, 30 Jan 2012 10:28:48 +0000 (11:28 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 30 Jan 2012 10:28:48 +0000 (11:28 +0100)
grml-debootstrap

index 1ab3dd7..bfe7504 100755 (executable)
@@ -264,7 +264,7 @@ stage() {
 # }}}
 
 # make sure we have what we need {{{
 # }}}
 
 # make sure we have what we need {{{
-check4progs debootstrap dialog || bailout 1
+check4progs debootstrap || bailout 1
 # }}}
 
 # source main configuration file {{{
 # }}}
 
 # source main configuration file {{{
@@ -748,6 +748,8 @@ fi
 # interactive mode {{{
 interactive_mode()
 {
 # interactive mode {{{
 interactive_mode()
 {
+  check4progs dialog || bailout 1
+
   welcome_dialog
 
   prompt_for_release
   welcome_dialog
 
   prompt_for_release