Fixed bash arrays in gs-release
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
1568e5a56f
commit
e3dcb1da3d
@ -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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user