Skip to content

Commit d7d9f14

Browse files
More error handling
1 parent aa32f30 commit d7d9f14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

release_tools/version_bump.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ if ! git checkout -b "version-$NEW_VERSION_NUMBER" ; then
5151
fi
5252

5353
# Commit the version number change.
54-
git commit -a -m "Version $NEW_VERSION_NUMBER"
54+
if ! git commit -a -m "Version $NEW_VERSION_NUMBER" ; then
55+
echo "git commit failed"
56+
exit 1
57+
fi
5558

5659
echo
5760
echo "I have updated the version number locally."

0 commit comments

Comments
 (0)