1
0

Make sure that if build.sh fail, it returns

This commit is contained in:
nicolas.dorier
2019-11-07 22:21:00 +09:00
parent ff146ac8c8
commit ec7bca1991
2 changed files with 3 additions and 2 deletions

View File

@@ -38,8 +38,9 @@ if ! [ -f "/etc/docker/daemon.json" ] && [ -w "/etc/docker" ]; then
}" > /etc/docker/daemon.json
echo "Setting limited log files in /etc/docker/daemon.json"
fi
set -e
. ./build.sh
set +e
if [ "$BTCPAYGEN_OLD_PREGEN" == "true" ]; then
cp Generated/docker-compose.generated.yml $BTCPAY_DOCKER_COMPOSE
cp Generated/torrc.tmpl "$(dirname "$BTCPAY_DOCKER_COMPOSE")/torrc.tmpl"