Skip to content

Commit

Permalink
The macOS head binary doesn't support -1 so switch to sed.
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi committed Dec 7, 2024
1 parent de64840 commit c0ab07d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/regenerate_test_rustdocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ for crate_pair; do
popd

pushd "$PLACEHOLDER_DIR"
head -n -1 Cargo.toml >Cargo.toml.trunc
mv Cargo.toml.trunc Cargo.toml
sed -i '' '$d' Cargo.toml
cargo add --path "../../../test_crates/$crate"
$METADATA_CMD >"$metadata"
popd
Expand Down

0 comments on commit c0ab07d

Please sign in to comment.