File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -438,14 +438,14 @@ def main():
438
438
rb .use_vendored_sources = '\n vendor = true' in rb .config_toml or \
439
439
'CFG_ENABLE_VENDOR' in rb .config_mk
440
440
441
- if 'SUDO_USER' in os .environ :
442
- if os .environ [ 'USER' ] != os .environ ['SUDO_USER' ]:
441
+ if 'SUDO_USER' in os .environ and not rb . use_vendored_sources :
442
+ if os .environ . get ( 'USER' ) != os .environ ['SUDO_USER' ]:
443
443
rb .use_vendored_sources = True
444
444
print ('info: looks like you are running this command under `sudo`' )
445
445
print (' and so in order to preserve your $HOME this will now' )
446
446
print (' use vendored sources by default. Note that if this' )
447
447
print (' does not work you should run a normal build first' )
448
- print (' before running a command like `sudo make intall `' )
448
+ print (' before running a command like `sudo make install `' )
449
449
450
450
if rb .use_vendored_sources :
451
451
if not os .path .exists ('.cargo' ):
You can’t perform that action at this time.
0 commit comments