Expand curl flags

This commit is contained in:
David Tolnay 2023-06-19 10:58:08 -07:00
parent b44cb146d0
commit b051cf32dc
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -62,7 +62,7 @@ runs:
- run: |
: install rustup if needed
if ! command -v rustup &>/dev/null; then
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused --location --silent --show-error --fail "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
fi
if: runner.os != 'Windows'