mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
17 lines
412 B
Python
Executable File
17 lines
412 B
Python
Executable File
#!/usr/bin/env python
|
|
# A simple wrapper that forwards the arguments to bash, unless the
|
|
# CI_OVERRIDE_SHELL environment variable is present: in that case the content
|
|
# of that environment variable is used as the shell path.
|
|
|
|
import os
|
|
import sys
|
|
import subprocess
|
|
|
|
try:
|
|
shell = os.environ["CI_OVERRIDE_SHELL"]
|
|
except KeyError:
|
|
shell = "bash"
|
|
|
|
res = subprocess.call([shell] + sys.argv[1:])
|
|
sys.exit(res)
|