Skip to content

Commit 938d19a

Browse files
committed
add missing declaration
1 parent e8a9397 commit 938d19a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ before_install:
1717
- echo GET CONFIG FROM GIT
1818
- export CURRENT_VERSION=$(git describe --tag --always --long | sed -e 's/\(.*\)-\(.*\)-.*/\1.\2/')
1919
- declare -a CURRENT_VERSION_ARRAY="(${CURRENT_VERSION//./ })"; export SEMVER_MAJOR=${CURRENT_VERSION_ARRAY[0]}; export SEMVER_MINOR=${CURRENT_VERSION_ARRAY[1]}; export SEMVER_PATCH=${CURRENT_VERSION_ARRAY[2]}; export SEMVER_BUILD=${CURRENT_VERSION_ARRAY[-1]}
20+
- export SEMVER_BUILD=$(( ${SEMVER_PATCH} + ${SEMVER_BUILD} ))
2021
- echo SEMVER_MAJOR:${SEMVER_MAJOR}
2122
- echo SEMVER_MINOR:${SEMVER_MINOR}
22-
- echo SEMVER_BUILD:$(( ${SEMVER_PATCH} + ${SEMVER_BUILD} ))
23+
- echo SEMVER_BUILD:${SEMVER_BUILD}
2324
- export SEMVER=${SEMVER_MAJOR}.${SEMVER_MINOR}.${SEMVER_BUILD}
2425
- echo SEMVER:$SEMVER
2526
- if [[ ${SEMVER_MAJOR} == "" ]]; then travis_terminate 1; fi

0 commit comments

Comments
 (0)