Skip to content

Commit f85fe1f

Browse files
committed
Tweak regex
1 parent 635e5a6 commit f85fe1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install-rust.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set -x
1717
# version) that we want to install. This value will change relatively often, as
1818
# new Rust _compilers_ are released, but you should only have to change it in
1919
# 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)
20+
RUST_VERSION=$(perl -ne 'if (/channel\s+=\s+"(\d+(?:\.\d+)+)"/) { print $1 }' rust-toolchain.toml)
2121

2222
if [[ -z "$RUST_VERSION" ]]; then
2323
echo "RUST_VERSION is empty"

0 commit comments

Comments
 (0)