Merge pull request #1111 from JakeMercer/root_check

MAKEFILE - Check if Root
This commit is contained in:
Tim Ansell 2019-10-20 12:06:32 -07:00 committed by GitHub
commit 50ba81962e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
SHELL = bash
ALL_EXCLUDE = third_party .git env build
# Check if root
ifeq ($(shell id -u),0)
$(error ERROR: Running as ID 0)
endif
# Tools + Environment
IN_ENV = if [ -e env/bin/activate ]; then . env/bin/activate; fi;
env: