mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +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')
|
print('NOTE: Entering nix-shell etc/shell.nix')
|
||||||
try:
|
try:
|
||||||
# sys argv already contains the ./mach part, so we just need to pass it as-is
|
# 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:
|
except KeyboardInterrupt:
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue