We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 635e5a6 commit f85fe1fCopy full SHA for f85fe1f
install-rust.sh
@@ -17,7 +17,7 @@ set -x
17
# version) that we want to install. This value will change relatively often, as
18
# new Rust _compilers_ are released, but you should only have to change it in
19
# rust-toolchain.toml. This file will pick it up automatically.
20
-RUST_VERSION=$(perl -ne 'if (/channel\s+=\s+"(\d+\.\d+.?\d+)"/) { print $1 }' rust-toolchain.toml)
+RUST_VERSION=$(perl -ne 'if (/channel\s+=\s+"(\d+(?:\.\d+)+)"/) { print $1 }' rust-toolchain.toml)
21
22
if [[ -z "$RUST_VERSION" ]]; then
23
echo "RUST_VERSION is empty"
0 commit comments