File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,14 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
11
11
# Since matrix variables are readonly in Azure Pipelines, we take
12
12
# INITIAL_RUST_CONFIGURE_ARGS and establish RUST_CONFIGURE_ARGS
13
13
# which downstream steps can alter
14
- if [[ -v INITIAL_RUST_CONFIGURE_ARGS ]]; then
15
- ciCommandSetEnv RUST_CONFIGURE_ARGS " ${INITIAL_RUST_CONFIGURE_ARGS} "
14
+ # macOS ships with Bash 3.16, so we cannot use [[ -v FOO ]],
15
+ # which was introduced in Bash 4.2
16
+ if [[ -z " ${INITIAL_RUST_CONFIGURE_ARGS+x} " ]]; then
17
+ INITIAL_RUST_CONFIG=" "
18
+ echo " No initial Rust configure args set"
19
+ else
20
+ INITIAL_RUST_CONFIG=" ${INITIAL_RUST_CONFIGURE_ARGS} "
21
+ ciCommandSetEnv RUST_CONFIGURE_ARGS " ${INITIAL_RUST_CONFIG} "
16
22
fi
17
23
18
24
# Builders starting with `dist-` are dist builders, but if they also end with
You can’t perform that action at this time.
0 commit comments