Browse Source

Do not specific tooling if the docker compose does not exists

feature/more-args
nicolas.dorier 6 years ago
parent
commit
34b6a81081
No known key found for this signature in database GPG Key ID: 6618763EF09186FE
  1. 2
      helpers.sh

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

Loading…
Cancel
Save