[build]: print error message when use root or sudo to build. (#1923)

Signed-off-by: Guohan Lu <gulv@microsoft.com>
This commit is contained in:
lguohan 2018-08-13 18:30:22 -07:00 committed by GitHub
parent 40bb27ca1c
commit e15cf2d66a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,10 @@ SHELL = /bin/bash
USER := $(shell id -un)
PWD := $(shell pwd)
ifeq ($(USER), root)
$(error Add your user account to docker group and use your user account to make. root or sudo are not supported!)
endif
# Remove lock file in case previous run was forcefully stopped
$(shell rm -f .screen)