Skip to content

Commit

Permalink
Fix bad curl
Browse files Browse the repository at this point in the history
  • Loading branch information
tresni committed Oct 4, 2017
1 parent 75bcc7c commit 2756abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Finance/yahoo-stock.1m.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ n=$((n-1))

for (( c=0; c<=n; c++ ))
do
echo -n ${stock[$c]}; echo -n ":"; curl -s echo "${s/stock_symbol/${stock[$c]}}"
echo -n "${stock[$c]}:"; curl -s "${s/stock_symbol/${stock[$c]}}"

# experimental: also log to disk
# echo -n $(date) >> stock_history.txt; echo -n " " >> stock_history.txt; echo -n ${stock[$c]} >> stock_history.txt; echo -n ":" >> stock_history.txt; curl -s echo ${s/stock_symbol/${stock[$c]}} >> stock_history.txt
Expand Down

0 comments on commit 2756abc

Please sign in to comment.