1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

OP-1666 deb tidy: allow clean under (fake)root

This commit is contained in:
James Duley 2015-01-04 10:26:54 +13:00
parent e778cafdae
commit e16a58ee5e

View File

@ -81,7 +81,7 @@ $(foreach var, $(SANITIZE_DEPRECATED_VARS), $(eval $(call SANITIZE_VAR,$(var),de
# Make sure this isn't being run as root unless installing (no whoami on Windows, but that is ok here)
ifeq ($(shell whoami 2>/dev/null),root)
ifeq ($(filter install install_qt,$(MAKECMDGOALS)),)
ifeq ($(filter install install_qt all_clean,$(MAKECMDGOALS)),)
$(error You should not be running this as root)
endif
endif