btcpayserver / btcpayserver-docker

Docker resources for hosting BTCPayServer easily
MIT License
584 stars 358 forks source link

btcpay-setup.sh:115: bad math expression: illegal character: " #299

Closed renguer0 closed 4 years ago

renguer0 commented 4 years ago

Hi there. I'm trying to enable transmuter. This is my btcpay-env.sh file:

export COMPOSE_HTTP_TIMEOUT="180"
export BTCPAYGEN_OLD_PREGEN="false"
export BTCPAYGEN_CRYPTO1="btc"
export BTCPAYGEN_CRYPTO2=""
export BTCPAYGEN_CRYPTO3=""
export BTCPAYGEN_CRYPTO4=""
export BTCPAYGEN_CRYPTO5=""
export BTCPAYGEN_CRYPTO6=""
export BTCPAYGEN_CRYPTO7=""
export BTCPAYGEN_CRYPTO8=""
export BTCPAYGEN_CRYPTO9=""
export BTCPAYGEN_LIGHTNING="none"
export BTCPAYGEN_REVERSEPROXY="nginx"
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="opt-save-storage-xxs;opt-add-btctransmuter"
export BTCPAYGEN_EXCLUDE_FRAGMENTS=""
export BTCPAY_DOCKER_COMPOSE="/BTCPayServer/btcpayserver-docker/Generated/docker-compose.generated.yml"
export BTCPAY_BASE_DIRECTORY="/BTCPayServer"
export BTCPAY_ENV_FILE="/BTCPayServer/.env"
export BTCPAY_HOST_SSHKEYFILE=""
export BTCPAY_ENABLE_SSH=true
export PIHOLE_SERVERIP=""
if cat "$BTCPAY_ENV_FILE" &> /dev/null; then
  while IFS= read -r line; do
    ! [[ "$line" == "#"* ]] && [[ "$line" == *"="* ]] && export "$line"
  done < "$BTCPAY_ENV_FILE"
fi

I'm following that guide: https://github.com/btcpayserver/btcTransmuter/blob/master/README.md and see this error:


/usr/local/bin/btcpay-setup.sh:115: bad math expression: illegal character: "```

What can I try? Thanks for your time.
NicolasDorier commented 4 years ago

first time I see such error.

Can you do cat /usr/local/bin/btcpay-setup.sh ? you may have accidentally modified this file?

renguer0 commented 4 years ago

first time I see such error.

Can you do cat /usr/local/bin/btcpay-setup.sh ? you may have accidentally modified this file?

Yep, I searched in btcpayserver chats and didn't find anything related. btcpay-setup.hs seems to be OK (I can cat the file and see their content).

renguer0 commented 4 years ago

I see that issue was related to zsh and not to btcpayserver: https://github.com/ohmyzsh/ohmyzsh/issues/1495

Hope that helps if someone have the same problem.