Skip to content

Commit

Permalink
Fixed escaped arrays in echo commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Jan 3, 2025
1 parent f659184 commit c048698
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python-scripts/binance-stats/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion scripts/mottekit/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c048698

Please sign in to comment.