mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-26 00:22:10 +03:00
Do not read Cargo.toml comments in update_crates.sh
This commit is contained in:
parent
9e09223e22
commit
2ae11daed3
@ -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" |
|
||||
|
Loading…
Reference in New Issue
Block a user