From 589c5373fff250bb9e98e4631316fb6b2bd6a94d Mon Sep 17 00:00:00 2001 From: GBA bot Date: Sat, 1 Jan 2022 12:39:40 +0000 Subject: [PATCH] Better sed command for replacing the version --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 913c2669..1f9b3044 100755 --- a/release.sh +++ b/release.sh @@ -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