Skip to content

Commit 8cd6503

Browse files
committed
fix: latest Rust compiler check
- fix latest Rust compiler check. Seems like upstream changed a little bit format of the message in the commands Tested: - Local test
1 parent 4d3b58d commit 8cd6503

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

latest.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ source /cargo/env
88

99
rustup toolchain install stable --profile=minimal
1010
STABLE=$(rustup check | grep stable | grep -E "[0-9]+\.[0-9]+\.[0-9]+" -o)
11-
DEFAULT=$(rustup show | grep -m 1 default | grep -E "[0-9]+\.[0-9]+\.[0-9]+" -o)
11+
DEFAULT=$(rustup show | grep -m 1 rustc | grep -E "[0-9]+\.[0-9]+\.[0-9]+" -o)
1212

1313
if [ "${STABLE}" == "${DEFAULT}" ]; then exit 0
1414
else exit 1
1515
fi
16+

0 commit comments

Comments
 (0)