mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 09:06:33 +11:00
Better sed command for replacing the version
This commit is contained in:
parent
85c81fdc7c
commit
589c5373ff
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ if [ "$PROJECT" = "agb" ]; then
|
||||||
git add template/Cargo.toml
|
git add template/Cargo.toml
|
||||||
|
|
||||||
for EXAMPLE_DIR in examples/*/; do
|
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)
|
(cd "$EXAMPLE_DIR" && cargo update)
|
||||||
git add "$EXAMPLE_DIR"/{Cargo.toml,Cargo.lock}
|
git add "$EXAMPLE_DIR"/{Cargo.toml,Cargo.lock}
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue