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}