diff --git a/home/.local/bin/scripts/bitcoin b/home/.local/bin/scripts/bitcoin index 78316b5..c0dfad2 100755 --- a/home/.local/bin/scripts/bitcoin +++ b/home/.local/bin/scripts/bitcoin @@ -1,6 +1,6 @@ #!/bin/sh -BTC_DATA=$(curl https://api.coindesk.com/v1/bpi/currentprice.json 2>/dev/null | echo 'ERR') +BTC_DATA=$(curl https://api.coindesk.com/v1/bpi/currentprice.json 2>/dev/null || echo 'ERR') if [ "$BTC_DATA" != "ERR" ]; then BTC_PRICE=$(echo $BTC_DATA | jq -r ".bpi.USD.rate_float")