config/options: check if the effective uid is root (and bail if so)

This commit is contained in:
MilhouseVH 2017-11-22 23:40:29 +00:00
parent cfe5d2906a
commit e4c752d394

View File

@ -1,3 +1,9 @@
# Do not build as root. Ever.
if [[ $EUID -eq 0 ]]; then
echo "Building as the root user is NOT supported. Use a regular user account for the build." 1>&2
exit 1
fi
# set default language for buildsystem
export LC_ALL=C