From 56e0b6aac3c1fd5530d6c7809bf537cbf437916b Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 24 Sep 2019 18:58:44 +0900 Subject: [PATCH] Make sure btcpay-build succeed if no internet connection --- build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sh b/build.sh index bb993c3..419c81a 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,15 @@ #!/bin/bash +set -e + : "${BTCPAYGEN_DOCKER_IMAGE:=btcpayserver/docker-compose-generator}" if [ "$BTCPAYGEN_DOCKER_IMAGE" == "btcpayserver/docker-compose-generator:local" ] then docker build docker-compose-generator -f docker-compose-generator/linuxamd64.Dockerfile --tag $BTCPAYGEN_DOCKER_IMAGE else + set +e docker pull $BTCPAYGEN_DOCKER_IMAGE + set -e fi # This script will run docker-compose-generator in a container to generate the yml files