Skip to content

Commit

Permalink
Auto merge of #37015 - ahmedcharles:sudo, r=alexcrichton
Browse files Browse the repository at this point in the history
Prevent accidentally running 'make install' as sudo.

r? @alexcrichton

I missed this in the previous PR, but this seems to work. It should probably go in a rollup, but I don't know how to do those. :/
  • Loading branch information
bors committed Oct 8, 2016
2 parents 195dbfa + f171d98 commit b5fcca5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/mk/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ check-cargotest:
dist:
$(Q)$(BOOTSTRAP) --step dist
install:
ifeq (root user, $(USER) $(patsubst %,user,$(SUDO_USER)))
$(Q)echo "'sudo make install' is not supported currently."
else
$(Q)$(BOOTSTRAP) --step install
endif
tidy:
$(Q)$(BOOTSTRAP) --step check-tidy --stage 0

Expand Down

0 comments on commit b5fcca5

Please sign in to comment.