Skip to content

Commit 2a4ebc3

Browse files
committed
fix: incrementing no longer returns error exit code WHO THOUGHT IT WAS A GOOD IDEA IN THE FIRST PLACE
1 parent 6b6425c commit 2a4ebc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/scripts/bump_version.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ fi
1010
IFS='.' read -r MAJOR MINOR PATCH <<< "$current_version"
1111

1212
if [[ "$1" == "major" ]]; then
13-
((MAJOR++))
13+
((++MAJOR))
1414
MINOR=0
1515
PATCH=0
1616
elif [[ "$1" == "minor" ]]; then
17-
((MINOR++))
17+
((++MINOR))
1818
PATCH=0
1919
elif [[ "$1" == "patch" ]]; then
20-
((PATCH++))
20+
((++PATCH))
2121
else
2222
echo "Error: Invalid version type. Use 'major', 'minor', or 'patch'."
2323
exit 1

0 commit comments

Comments
 (0)