mirror of
https://github.com/luzifer-docker/docker-compose.git
synced 2024-12-20 17:51:16 +00:00
Add check for empty version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1156c9672f
commit
e481c244cd
1 changed files with 4 additions and 0 deletions
4
build.sh
4
build.sh
|
@ -34,6 +34,10 @@ fi
|
||||||
echo "Fetching latest version number of docker-compose"
|
echo "Fetching latest version number of docker-compose"
|
||||||
|
|
||||||
COMPOSE_VERSION=$(curl -sSL https://pypi.python.org/pypi/docker-compose/json | ./jq -r .info.version)
|
COMPOSE_VERSION=$(curl -sSL https://pypi.python.org/pypi/docker-compose/json | ./jq -r .info.version)
|
||||||
|
[[ -n $COMPOSE_VERSION ]] || {
|
||||||
|
echo "Empty version found"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
if (git tag -l ${COMPOSE_VERSION} | grep -q ${COMPOSE_VERSION}); then
|
if (git tag -l ${COMPOSE_VERSION} | grep -q ${COMPOSE_VERSION}); then
|
||||||
echo "/!\\ Already got a tag for version ${COMPOSE_VERSION}, stopping now"
|
echo "/!\\ Already got a tag for version ${COMPOSE_VERSION}, stopping now"
|
||||||
|
|
Loading…
Reference in a new issue