mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-16 08:29:15 +01:00
OP-1666 deb tidy: allow clean under (fake)root
This commit is contained in:
parent
e778cafdae
commit
e16a58ee5e
2
Makefile
2
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user