Improve check4root message WRT usage instructions.
authorMichael Prokop <mika@grml.org>
Thu, 2 Dec 2010 14:14:43 +0000 (15:14 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 2 Dec 2010 14:15:23 +0000 (15:15 +0100)
grml-debootstrap

index fe1b22b..a850a4e 100755 (executable)
@@ -91,7 +91,10 @@ fi
 
 # make sure we have what we need {{{
 check4progs debootstrap dialog || exit 1
 
 # make sure we have what we need {{{
 check4progs debootstrap dialog || exit 1
-check4root || exit 1
+if ! check4root ; then
+   echo "For usage instructions please execute '$PN --help'."
+   exit 1
+fi
 # }}}
 
 # source main configuration file {{{
 # }}}
 
 # source main configuration file {{{