From e544c1ead95d0ad56d541dfef67aa4c21648db25 Mon Sep 17 00:00:00 2001 From: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com> Date: Tue, 1 Oct 2024 03:47:01 -0400 Subject: [PATCH] Modify the `bump-version` script for this repository Copy over necessary changes from the `bump_version.sh` script. --- bump-version | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bump-version b/bump-version index b19230e..600265b 100755 --- a/bump-version +++ b/bump-version @@ -8,7 +8,7 @@ set -o errexit set -o pipefail # Stores the canonical version for the project. -VERSION_FILE=config/version.txt +VERSION_FILE=src/version.txt # Files that should be updated with the new version. VERSION_FILES=("$VERSION_FILE" README.md) @@ -29,7 +29,7 @@ Options: END_OF_LINE ) -old_version=$(< "$VERSION_FILE") +old_version=$(sed -n "s/^__version__ = \"\(.*\)\"$/\1/p" $VERSION_FILE) # Comment out periods so they are interpreted as periods and don't # just match any character old_version_regex=${old_version//\./\\\.}