Skip to content

Commit dfca716

Browse files
committed
Fix setup.sh for CI
1 parent 72127c0 commit dfca716

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ else
2727
fi
2828
# Install rust compiler
2929
echo "Installing rust compiler"
30-
HOST_ABI_FLAGS=("")
30+
unset HOST_ABI_FLAGS
3131
if [[ "$OSTYPE" == "msys"* ]]; then # Windows
32-
HOST_ABI_FLAGS+=("--default-host" "$(clang --print-target-triple)")
32+
HOST_ABI_FLAGS=("--default-host" "$(clang --print-target-triple)")
3333
fi
34-
curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/rust-lang/rustup/refs/tags/1.28.2/rustup-init.sh -sSf | sh -s -- -y "${HOST_ABI_FLAGS[@]}" --default-toolchain 1.85
34+
curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/rust-lang/rustup/refs/tags/1.28.2/rustup-init.sh -sSf | sh -s -- -y ${HOST_ABI_FLAGS+"${HOST_ABI_FLAGS[@]}"} --default-toolchain 1.85
3535
CARGO_BIN="$HOME/.cargo/bin/cargo" # also works for Windows. On Windows this equals to %USERPROFILE%\.cargo\bin\cargo
3636
$CARGO_BIN install cbindgen
3737
# Setup Poetry

0 commit comments

Comments
 (0)