Skip to content

Commit c649e45

Browse files
committed
Also grep -v out .cargo_vcs_info.json in cargo-zng
In addition to `Cargo.toml.orig`. This also refactors the command to use fixed string (`-F`) and match whole lines (`-x`), to eliminate the `^` and `$` anchors and `\` escapes from the pattern. See #214.
1 parent d39c1c5 commit c649e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cargo-zng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tempdir="$(mktemp -d)"
44
trap 'rm -rf "$tempdir"' 0 INT
55
cargo package -l --allow-dirty |
66
tr '\\' '/' |
7-
grep -v '^Cargo\.toml\.orig$' |
7+
grep -vxF -e Cargo.toml.orig -e .cargo_vcs_info.json |
88
tar --files-from=- -cf - |
99
tar -C "$tempdir" -xf -
1010
cp Cargo-zng.toml "$tempdir/Cargo.toml"

0 commit comments

Comments
 (0)