updatecli.d/rust.yml: fix staleness check when using rustup 1.29

This commit is contained in:
Johannes Altmanninger
2026-04-19 15:26:16 +08:00
parent 937f3bc6cb
commit fdb1d95521

View File

@@ -6,9 +6,9 @@ sources:
spec:
shell: bash
command: |
set -eo pipefail
set -e
# Check that we have latest stable.
if rustup check | grep ^stable- | grep 'Update available'; then
if rustup check | grep '^stable-.*[uU]pdate available'; then
echo >&2 "Rust toolchain 'stable' is stale, please update it"
exit 1
fi