Fixed bash arrays in gs-release

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2021-12-17 07:25:45 +00:00
parent 1568e5a56f
commit e3dcb1da3d
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -36,9 +36,9 @@ if [ "$MAIN_BRANCH" != "$CURRENT_BRANCH" ]; then
fi
VERSION_PARTS=($(echo $CURRENT_TAG | tr "." "\n"))
VERSION_MAJOR=${VERSION_PARTS[1]}
VERSION_MINOR=${VERSION_PARTS[2]}
VERSION_PATCH=${VERSION_PARTS[3]}
VERSION_MAJOR=${VERSION_PARTS[0]}
VERSION_MINOR=${VERSION_PARTS[1]}
VERSION_PATCH=${VERSION_PARTS[2]}
echo "The latest released version is ${CURRENT_TAG}"
echo ""