From c048698580c3982ab4362730db35b6f7f576ed19 Mon Sep 17 00:00:00 2001 From: dmotte <37443982+dmotte@users.noreply.github.com> Date: Fri, 3 Jan 2025 18:30:36 +0100 Subject: [PATCH] Fixed escaped arrays in echo commands --- python-scripts/binance-stats/README.md | 4 ++-- scripts/mottekit/install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python-scripts/binance-stats/README.md b/python-scripts/binance-stats/README.md index 5638e87..27a276e 100644 --- a/python-scripts/binance-stats/README.md +++ b/python-scripts/binance-stats/README.md @@ -24,11 +24,11 @@ mkdir ohlcv mapfile -t coins < <(cat transactions/records-*.csv | venv/bin/python3 coins.py | tr -d '\r') -echo "${coins[@]@Q}" +echo "${coins[*]@Q}" mapfile -t years < <(find transactions -name 'records-*.csv' \ -printf '%P\n' | tr -cd '0-9\n') -echo "${years[@]@Q}" +echo "${years[*]@Q}" i=0; for year in "${years[@]}"; do for coin in "${coins[@]}"; do echo "$((++i)): fetching year $year coin $coin" diff --git a/scripts/mottekit/install.sh b/scripts/mottekit/install.sh index 75c9516..caf11e4 100644 --- a/scripts/mottekit/install.sh +++ b/scripts/mottekit/install.sh @@ -19,7 +19,7 @@ done echo 'Cannot find a location in PATH suitable for installing the' \ 'MotteKit entrypoint. You must have one of the following' \ 'directories in your PATH:' >&2 - echo "${path_dirs[@]@Q}" >&2 + echo "${path_dirs[*]@Q}" >&2 exit 1 }