Skip to content

Commit

Permalink
Modify the bump-version script for this repository
Browse files Browse the repository at this point in the history
Copy over necessary changes from the `bump_version.sh` script.
  • Loading branch information
mcdonnnj committed Oct 1, 2024
1 parent 07dff4d commit e544c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bump-version
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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//\./\\\.}
Expand Down

0 comments on commit e544c1e

Please sign in to comment.