From 2ae11daed3ab2c8f4029fbeacdf5128e42f90b71 Mon Sep 17 00:00:00 2001 From: fpinto Date: Tue, 21 Feb 2023 10:41:22 +0100 Subject: [PATCH] Do not read Cargo.toml comments in update_crates.sh --- bin/update_crates.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/update_crates.sh b/bin/update_crates.sh index 67e9c4d8b..f35f321f2 100755 --- a/bin/update_crates.sh +++ b/bin/update_crates.sh @@ -31,7 +31,7 @@ convert_toml_crates_to_key_value() { # convert toml crates to key value sed -n "/dependencies\]/,/^$/p" "${toml_file}" | - grep --extended-regexp --invert-match "^\[|path|^$" | + grep --extended-regexp --invert-match "^\[|path|^$|^#" | cut --delimiter ',' --field 1 | sed "s/version//g" | tr -d '"{=' | @@ -150,7 +150,7 @@ main() { echo -e "\n--------------------------------------------------------" echo -e "### Crates updates for *Cargo.lock*\n" cargo update --color always -vv 2>&1 | - (grep -Ev "crates.io index|Removing" || true) | + (grep -Ev "crates.io index|Removing|^#" || true) | tr -s ' ' | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | sed "s/ Updating //g" |