Skip to content

Commit 37e557d

Browse files
More error checking
1 parent d489261 commit 37e557d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

release_tools/version_bump.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ if ! hatch version "$@" ; then
4141
exit 1
4242
fi
4343

44-
NEW_VERSION_NUMBER=$(hatch version)
44+
# Read new version number
45+
if ! NEW_VERSION_NUMBER=$(hatch version) ; then
46+
echo "Failed to retrieve version number."
47+
exit 1
48+
fi
4549

4650
# Create new branch
4751
if ! git checkout -b "version-$NEW_VERSION_NUMBER" ; then

0 commit comments

Comments
 (0)