Added dollar signs to logs
parent
4b0f37165b
commit
c2e849599d
|
@ -48,11 +48,11 @@ for asset in ${!assets[@]}; do
|
||||||
|
|
||||||
# Looks good; add it
|
# Looks good; add it
|
||||||
else
|
else
|
||||||
price=$(echo $res | jq '.results[0].vw')
|
price="\$$(echo $res | jq '.results[0].vw')"
|
||||||
echo " Price: $price"
|
echo " Price: $price"
|
||||||
line="P $(date -I --date=yesterday) $asset"
|
line="P $(date -I --date=yesterday) $asset"
|
||||||
grep "$line" "$PRICES_FILE" >/dev/null \
|
grep "$line" "$PRICES_FILE" >/dev/null \
|
||||||
|| echo "$line \$$price" >> "$PRICES_FILE"
|
|| echo "$line $price" >> "$PRICES_FILE"
|
||||||
sleep 10 # Optional, check API limits
|
sleep 10 # Optional, check API limits
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue