diff --git a/get-prices b/get-prices index a2ce1ea..b07da52 100755 --- a/get-prices +++ b/get-prices @@ -48,11 +48,11 @@ for asset in ${!assets[@]}; do # Looks good; add it else - price=$(echo $res | jq '.results[0].vw') + price="\$$(echo $res | jq '.results[0].vw')" echo " Price: $price" line="P $(date -I --date=yesterday) $asset" grep "$line" "$PRICES_FILE" >/dev/null \ - || echo "$line \$$price" >> "$PRICES_FILE" + || echo "$line $price" >> "$PRICES_FILE" sleep 10 # Optional, check API limits fi