From 6c293f4cac7148b10f35bb443208c35bb8b3f612 Mon Sep 17 00:00:00 2001 From: Amine Bou Date: Sat, 26 May 2018 10:51:11 +0200 Subject: [PATCH] Changing the tag handling. --- build.sh | 4 ++-- version.sh | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index f8967d4..756d81b 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,9 @@ #!/bin/bash -BASE_VERSION="v1.6" +BASE_VERSION="1.6" TODAYS_VERSION="1" -VERSION="${BASE_VERSION}.$(date '+%y%m%j')$TODAYS_VERSION" +VERSION="${BASE_VERSION//./}$(date '+%y%m%j')$TODAYS_VERSION" ./version.sh ${VERSION} $@ diff --git a/version.sh b/version.sh index caa9908..3bb4033 100755 --- a/version.sh +++ b/version.sh @@ -3,8 +3,9 @@ echo "Creating tag $@" -git tag $@ +TAG="v$@" +git tag ${TAG} echo "Pushing tag" -git push origin $@ +git push origin ${TAG}