Do not specific tooling if the docker compose does not exists

This commit is contained in:
nicolas.dorier 2019-07-03 16:40:31 +09:00
parent 27919437cd
commit 34b6a81081
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -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"