mirror of
https://github.com/servo/servo.git
synced 2025-06-06 00:25:37 +00:00
mach: fix exit status on NixOS (#30079)
This commit is contained in:
parent
2fe0413b72
commit
048ca7806b
1 changed files with 2 additions and 1 deletions
3
mach
3
mach
|
@ -40,7 +40,8 @@ if __name__ == '__main__':
|
|||
print('NOTE: Entering nix-shell etc/shell.nix')
|
||||
try:
|
||||
# sys argv already contains the ./mach part, so we just need to pass it as-is
|
||||
subprocess.Popen(['nix-shell', mach_dir + '/etc/shell.nix', '--run', ' '.join(map(quote, sys.argv))]).wait()
|
||||
result = subprocess.run(['nix-shell', mach_dir + '/etc/shell.nix', '--run', ' '.join(map(quote, sys.argv))])
|
||||
sys.exit(result.returncode)
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(0)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue