Skip to content

Commit e4d5563

Browse files
committed
use curl on windows
1 parent 397dd68 commit e4d5563

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ci/azure-install-rust.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@ steps:
44
if command -v rustup; then
55
echo `command -v rustup` `rustup -V` already installed
66
rustup self update
7-
elif [ "$AGENT_OS" = "Windows_NT" ]; then
8-
curl -sSf -o rustup-init.exe https://win.rustup.rs
9-
rustup-init.exe -y --default-toolchain $TOOLCHAIN --profile=minimal
10-
echo "##vso[task.prependpath]$USERPROFILE/.cargo/bin"
117
else
12-
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN --profile=minimal
8+
curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain="$TOOLCHAIN" --profile=minimal
139
echo "##vso[task.prependpath]$HOME/.cargo/bin"
1410
fi
1511
displayName: Install rustup

0 commit comments

Comments
 (0)