mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Better sed command for replacing the version
This commit is contained in:
parent
85c81fdc7c
commit
589c5373ff
|
@ -79,7 +79,7 @@ if [ "$PROJECT" = "agb" ]; then
|
|||
git add template/Cargo.toml
|
||||
|
||||
for EXAMPLE_DIR in examples/*/; do
|
||||
sed -i -e "/agb =/ s/version = \"[0-9.]+\"/version = \"$VERSION\"/" "$EXAMPLE_DIR/Cargo.toml"
|
||||
sed -E -i -e "/agb =/ s/version = \"[^\"]+\"/version = \"$VERSION\"/" "$EXAMPLE_DIR/Cargo.toml"
|
||||
(cd "$EXAMPLE_DIR" && cargo update)
|
||||
git add "$EXAMPLE_DIR"/{Cargo.toml,Cargo.lock}
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue