Fix update_crates.sh when there is no cargo lock updates

This commit is contained in:
Filipe PINTO 2022-12-27 21:47:16 +01:00 committed by GitHub
parent 6fb9210436
commit e542c27771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ main() {
echo -e "\n--------------------------------------------------------"
echo -e "### Crates updates for *Cargo.lock*\n"
cargo update --color always -vv 2>&1 |
grep -v "crates.io index" |
(grep -v "crates.io index" || true) |
tr -s ' ' |
sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" |
sed "s/ Updating //g" |