Skip to content

Commit a6f8782

Browse files
authored
chore: fix setup script errors
1 parent 4cd91ef commit a6f8782

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/ci/scripts/install-ninja.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ IFS=$'\n\t'
66

77
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
88

9+
# Check and set default values for variables
10+
: "${MIRRORS_BASE:?MIRRORS_BASE is not set}"
11+
: "${RUST_CONFIGURE_ARGS:=}"
12+
913
if isWindows; then
10-
mkdir ninja
11-
curl -o ninja.zip "${MIRRORS_BASE}/2024-03-28-v1.11.1-ninja-win.zip"
14+
mkdir -p ninja
15+
curl -fLo ninja.zip "${MIRRORS_BASE}/2024-03-28-v1.11.1-ninja-win.zip"
1216
7z x -oninja ninja.zip
1317
rm ninja.zip
1418
ciCommandSetEnv "RUST_CONFIGURE_ARGS" "${RUST_CONFIGURE_ARGS} --enable-ninja"

0 commit comments

Comments
 (0)