unset old array to get new data
This commit is contained in:
parent
e4d8905e11
commit
5d52653e6c
@ -15,6 +15,7 @@ function get_vars_from_csv {
|
|||||||
f_all_vars="f_market_performance=${f_market_performance}"
|
f_all_vars="f_market_performance=${f_market_performance}"
|
||||||
|
|
||||||
# read last 4 lines in array if not given
|
# read last 4 lines in array if not given
|
||||||
|
unset f_last_lines_array
|
||||||
if [ -z "${f_last_lines_array}" ]
|
if [ -z "${f_last_lines_array}" ]
|
||||||
then
|
then
|
||||||
mapfile -t f_last_lines_array < <(tail -n4 "${f_ASSET_HIST_FILE}")
|
mapfile -t f_last_lines_array < <(tail -n4 "${f_ASSET_HIST_FILE}")
|
||||||
|
Loading…
Reference in New Issue
Block a user