X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=fb8562c470ef02da3135f965d74f56b64eb53b46;hp=a850a4e82ec468e84fda1db6c51af23c058103a1;hb=76ed29a773435264b5bb623b51c50d974a70e380;hpb=b7e825068434bab80452aa1261c7de935f90ac18;ds=sidebyside diff --git a/grml-debootstrap b/grml-debootstrap index a850a4e..fb8562c 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -91,10 +91,6 @@ fi # make sure we have what we need {{{ check4progs debootstrap dialog || exit 1 -if ! check4root ; then - echo "For usage instructions please execute '$PN --help'." - exit 1 -fi # }}} # source main configuration file {{{ @@ -169,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."