From df0a784ab4516b6a592c8ae95335e50dc400b8f0 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 2 Oct 2018 11:32:00 +0900 Subject: [PATCH] Simplify script --- btcpay-update.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/btcpay-update.sh b/btcpay-update.sh index b9f6a5f..895766b 100755 --- a/btcpay-update.sh +++ b/btcpay-update.sh @@ -17,14 +17,12 @@ fi cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker" git pull --force -if [[ $BTCPAY_DOCKER_COMPOSE == *docker-compose.generated.yml ]]; then - # Generate the docker compose in BTCPAY_DOCKER_COMPOSE - . ./build.sh - if [ "$BTCPAYGEN_OLD_PREGEN" == "true" ]; then - cp Generated/docker-compose.generated.yml $BTCPAY_DOCKER_COMPOSE - fi +. ./build.sh +if [ "$BTCPAYGEN_OLD_PREGEN" == "true" ]; then + cp Generated/docker-compose.generated.yml $BTCPAY_DOCKER_COMPOSE fi + for scriptname in *.sh; do if [ "$scriptname" == "build.sh" ] || \ [ "$scriptname" == "build-pregen.sh" ] || \