Skip to content

Commit

Permalink
ci: Fix cases where unset variables cause errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Nov 18, 2024
1 parent 59a18de commit 812f41a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ci/install-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
set -eux

echo "Setup toolchain"
toolchain=
if [ -n "$TOOLCHAIN" ]; then
toolchain=$TOOLCHAIN
else
toolchain=nightly
fi
toolchain="${TOOLCHAIN:-nightly}"

if [ "$OS" = "windows" ]; then
: "${TARGET?The TARGET environment variable must be set.}"
Expand Down

0 comments on commit 812f41a

Please sign in to comment.