Quickfix for semver script

This commit is contained in:
George
2020-07-22 05:51:46 -04:00
parent 121338ba2b
commit 94ed255f5f
+1 -5
View File
@@ -23,11 +23,7 @@ MINOR=$(echo $TAG | cut -c 2- | cut -d "." -f 2)
PATCH=$(echo $TAG | cut -c 2- | cut -d "." -f 3)
# Output in the desired format
if [ $((PATCH)) -eq 0 ]; then
printf '%s%d.%d' "$PREPEND" "$((MAJOR))" "$((MINOR))"
else
printf '%s%d.%d.%d' "$PREPEND" "$((MAJOR))" "$((MINOR))" "$((PATCH))"
fi
printf '%s%d.%d.%s' "$PREPEND" "$((MAJOR))" "$((MINOR))" "$PATCH"
# Add the build tag on non-master branches
if [ "$BRANCH" != "master" ]; then