makedist: don't start if not root user

This commit is contained in:
Silvan Calarco 2011-09-09 22:54:29 +02:00
parent 2f03dee314
commit 7f9c89d528

View File

@ -23,6 +23,11 @@ MAKEDIST_DEFS=$MAKEDIST_DIR/defs.inc.sh
exit 1 exit 1
} }
[ "`id -u`" = "0" ] || {
echo "Error: you must be root to run makedist; aborting."
exit 1
}
opts=($@) opts=($@)
while test -n "$1" ; do while test -n "$1" ; do