From 2b1ba6c849c1a2c99f285de3a0f1477a63c693fa Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sun, 15 Aug 2021 23:18:55 +0100 Subject: [PATCH] local can only be used in functions --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index ac66b45b..23db2993 100755 --- a/release.sh +++ b/release.sh @@ -79,7 +79,7 @@ if [ "$PROJECT" = "agb" ]; then sed -i -e "s/^agb = \".*\"/agb = \"$VERSION\"/" template/Cargo.toml git add template/Cargo.toml else - local PROJECT_NAME_WITH_UNDERSCORES=$(echo -n "$PROJECT" | tr - _) + PROJECT_NAME_WITH_UNDERSCORES=$(echo -n "$PROJECT" | tr - _) sed -i -E -e "s/($PROJECT_NAME_WITH_UNDERSCORES = .*version = \")[^\"]+(\".*)/\1$VERSION\2/" agb/Cargo.toml (cd agb && cargo update)