Skip to content

Commit

Permalink
Don't check for sudo environment if vendored sources are already conf…
Browse files Browse the repository at this point in the history
…igured
  • Loading branch information
djc committed Feb 2, 2017
1 parent a47a6ea commit a0efdf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/bootstrap.py
Expand Up @@ -438,7 +438,7 @@ def main():
rb.use_vendored_sources = '\nvendor = true' in rb.config_toml or \
'CFG_ENABLE_VENDOR' in rb.config_mk

if 'SUDO_USER' in os.environ:
if 'SUDO_USER' in os.environ and not rb.use_vendored_sources:
if os.environ['USER'] != os.environ['SUDO_USER']:
rb.use_vendored_sources = True
print('info: looks like you are running this command under `sudo`')
Expand Down

0 comments on commit a0efdf3

Please sign in to comment.