mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
fixed
This commit is contained in:
parent
488d383637
commit
6bfd5d2047
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
price=$(curl -s "https://api.coinbase.com/v2/prices/spot?currency=USD" | jq -r .data.amount | awk -F. '{print $1}')
|
response=$(curl -s "https://api.coinbase.com/v2/prices/BTC-USD/spot")
|
||||||
|
price=$(echo "$response" | jq -r .data.amount | awk -F. '{print $1}')
|
||||||
|
|
||||||
if [ -z "$price" ]; then
|
if [ -z "$price" ]; then
|
||||||
echo -e "\033[31mErr\033[0m"
|
echo -e "\033[31mErr\033[0m"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue