From 01549f293a04b8a59deded922922de22ba56dc64 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 26 Jul 2018 23:21:31 +0900 Subject: [PATCH] fix script --- btcpay-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btcpay-setup.sh b/btcpay-setup.sh index d511827..7fd2747 100755 --- a/btcpay-setup.sh +++ b/btcpay-setup.sh @@ -331,7 +331,7 @@ fi cd "$(dirname $BTCPAY_ENV_FILE)" -if [ "$OLD_BTCPAY_DOCKER_COMPOSE" != "$BTCPAY_DOCKER_COMPOSE" ]; then +if [ ! -z "$OLD_BTCPAY_DOCKER_COMPOSE" ] && [ "$OLD_BTCPAY_DOCKER_COMPOSE" != "$BTCPAY_DOCKER_COMPOSE" ]; then echo "Closing old docker-compose at $OLD_BTCPAY_DOCKER_COMPOSE..." docker-compose -f "$OLD_BTCPAY_DOCKER_COMPOSE" down fi