summaryrefslogtreecommitdiff
path: root/ar/.local/bin/statusbar/sb-ticker
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.local/bin/statusbar/sb-ticker')
-rwxr-xr-xar/.local/bin/statusbar/sb-ticker6
1 files changed, 3 insertions, 3 deletions
diff --git a/ar/.local/bin/statusbar/sb-ticker b/ar/.local/bin/statusbar/sb-ticker
index f68b6bd..ce25a6e 100755
--- a/ar/.local/bin/statusbar/sb-ticker
+++ b/ar/.local/bin/statusbar/sb-ticker
@@ -24,9 +24,9 @@ checkprice() {
getchange() {
mapfile -t changes < <(sed -e 's/ / /g' "$pricefile" | grep -oe '[m-]\+[0-9]\+\.[0-9]\+' | sed 's/[m ]/;/g')
- IFS=',' read -ra TICKER <<<"$tickers"
- for idx in "${!TICKER[@]}"; do
- printf "%s: %s%%\n" "${TICKER[$idx]}" "${changes[$idx]//;/}"
+ IFS=',' read -ra ticker <<<"$tickers"
+ for idx in "${!ticker[@]}"; do
+ printf "%s: %s%%\n" "${ticker[$idx]}" "${changes[$idx]//;/}"
done
}