diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-28 19:03:01 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-28 19:03:01 +0900 |
| commit | cbd1d349a511da7a861540a5d6ea954d4d06871b (patch) | |
| tree | 92b932d351a9474e7fd0f12c6c973274daaaa0d9 /ar/.local/bin/statusbar/sb-ticker | |
| parent | 74cb5de14fc06fe97b6fc306f6176f7d6b467b6b (diff) | |
updates
Diffstat (limited to 'ar/.local/bin/statusbar/sb-ticker')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-ticker | 6 |
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 } |
