Merge pull request #2248 from MilhouseVH/le90_check_root

config/options: check if the effective uid is root (and bail if so)
This commit is contained in:
Radostan Riedel 2017-11-25 09:00:24 +01:00 committed by GitHub
commit a5cd1eee59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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