X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=fb8562c470ef02da3135f965d74f56b64eb53b46;hp=fe1b22bb5e8aeb545192ed0f5d3b6592eb0d43f1;hb=ad314413a10be5e46de7dead3e40291a99953631;hpb=cbdabc103c8568d794ed3a1eac58cbf6304a3985 diff --git a/grml-debootstrap b/grml-debootstrap index fe1b22b..fb8562c 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -91,7 +91,6 @@ fi # make sure we have what we need {{{ check4progs debootstrap dialog || exit 1 -check4root || exit 1 # }}} # source main configuration file {{{ @@ -166,6 +165,13 @@ fi } # }}} +# check for root permissions {{{ +if ! check4root ; then + echo "For usage instructions please execute '$PN --help'." + exit 1 +fi +# }}} + # source specified configuration file {{{ if [ -n "$CONFIGFILE" ] ; then einfo "Reading specified config file $CONFIGFILE."