From c2e849599da711c609bece78c655d1f23da046d5 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sat, 7 May 2022 10:42:57 -0600 Subject: [PATCH] Added dollar signs to logs --- get-prices | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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