makedist: don't start if not root user
This commit is contained in:
parent
2f03dee314
commit
7f9c89d528
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user