fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
412 B16 linesraw
1#!/usr/bin/env python
2# A simple wrapper that forwards the arguments to bash, unless the
3# CI_OVERRIDE_SHELL environment variable is present: in that case the content
4# of that environment variable is used as the shell path.
5
6import os
7import sys
8import subprocess
9
10try:
11    shell = os.environ["CI_OVERRIDE_SHELL"]
12except KeyError:
13    shell = "bash"
14
15res = subprocess.call([shell] + sys.argv[1:])
16sys.exit(res)