From 34b6a8108182eda6c90b19c0a3e7b2fb9ca78fb8 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 3 Jul 2019 16:40:31 +0900 Subject: [PATCH] Do not specific tooling if the docker compose does not exists --- helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.sh b/helpers.sh index e4e5473..8044ed2 100755 --- a/helpers.sh +++ b/helpers.sh @@ -34,7 +34,7 @@ install_tooling() { [ -e /usr/local/bin/$scriptname ] && rm /usr/local/bin/$scriptname if [ -e "$scriptname" ]; then - if [ "$dependency" == "*" ] || grep -q "$dependency" "$BTCPAY_DOCKER_COMPOSE"; then + if [ "$dependency" == "*" ] || ( [ -e "$BTCPAY_DOCKER_COMPOSE" ] && grep -q "$dependency" "$BTCPAY_DOCKER_COMPOSE" ); then chmod +x $scriptname ln -s "$(pwd)/$scriptname" /usr/local/bin echo "Installed $scriptname to /usr/local/bin: $comment"