summaryrefslogtreecommitdiffstats
path: root/.travis/tagger.sh
diff options
context:
space:
mode:
authorPaweł Krupa <pawel@krupa.net.pl>2018-12-06 10:22:37 +0100
committerGitHub <noreply@github.com>2018-12-06 10:22:37 +0100
commit16929d4172138b8ea016845b24e41897775149c0 (patch)
tree51e9f5c71ba5773f27da25857f09335eb982fd18 /.travis/tagger.sh
parent972e4033b54d84e20a860baa9e51cfc144d2c476 (diff)
run shfmt on CI scripts (#4928)
[netdata release candidate]
Diffstat (limited to '.travis/tagger.sh')
-rwxr-xr-x.travis/tagger.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/.travis/tagger.sh b/.travis/tagger.sh
index 80e86d7afe..59e75348fb 100755
--- a/.travis/tagger.sh
+++ b/.travis/tagger.sh
@@ -24,7 +24,7 @@ fi
# Embed new version in files which need it.
# This wouldn't be needed if we could use `git tag` everywhere.
-function embed_version {
+function embed_version() {
VERSION="$1"
MAJOR=$(echo "$GIT_TAG" | cut -d . -f 1 | cut -d v -f 2)
MINOR=$(echo "$GIT_TAG" | cut -d . -f 2)
@@ -37,7 +37,7 @@ function embed_version {
# Figure out what will be new release candidate tag based only on previous ones.
# This assumes that RELEASES are in format of "v0.1.2" and prereleases (RCs) are using "v0.1.2-rc0"
-function release_candidate {
+function release_candidate() {
LAST_TAG=$(git semver)
if [[ $LAST_TAG =~ -rc* ]]; then
VERSION=$(echo "$LAST_TAG" | cut -d'-' -f 1)
@@ -62,7 +62,10 @@ if [ -z "${GIT_TAG}" ]; then
*"[netdata minor release]"*) GIT_TAG="v$(git semver --next-minor)" ;;
*"[netdata major release]"*) GIT_TAG="v$(git semver --next-major)" ;;
*"[netdata release candidate]"*) release_candidate ;;
- *) echo "Keyword not detected. Exiting..."; exit 0;;
+ *)
+ echo "Keyword not detected. Exiting..."
+ exit 0
+ ;;
esac
fi
embed_version "$GIT_TAG"