Added dollar signs to logs

master
Keith Irwin 2022-05-07 10:42:57 -06:00
parent 4b0f37165b
commit c2e849599d
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 2 additions and 2 deletions

View File

@ -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