Skip to content

Commit a0efdf3

Browse files
committed
Don't check for sudo environment if vendored sources are already configured
1 parent a47a6ea commit a0efdf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def main():
438438
rb.use_vendored_sources = '\nvendor = true' in rb.config_toml or \
439439
'CFG_ENABLE_VENDOR' in rb.config_mk
440440

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

0 commit comments

Comments
 (0)