Skip to content

Commit

Permalink
Show standard error in upgrade_examples.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius authored Jan 14, 2025
1 parent 728466e commit 4a7fd74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/upgrade_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ for EXAMPLE in examples/general examples/supplementary examples/restriction $EXP
PREV_REV="$(sed -n 's/^clippy_utils\>.*\(\<\(rev\|tag\) = "[^"]*"\).*$/\1/;T;p' "$EXAMPLE"/Cargo.toml)"
PREV_CHANNEL="$(sed -n 's/^channel = "[^"]*"$/&/;T;p' "$EXAMPLE"/rust-toolchain)"

$CARGO_DYLINT upgrade "$EXAMPLE" --auto-correct 2>/dev/null || true
$CARGO_DYLINT upgrade "$EXAMPLE" --auto-correct || true

REV="$(sed -n 's/^clippy_utils\>.*\(\<\(rev\|tag\) = "[^"]*"\).*$/\1/;T;p' "$EXAMPLE"/Cargo.toml)"
sed -i "s/^\(clippy_config\>.*\)\<\(rev\|tag\) = \"[^\"]*\"\(.*\)$/\1$REV\3/" "$EXAMPLE"/Cargo.toml
Expand Down

0 comments on commit 4a7fd74

Please sign in to comment.