fix: array reference
This commit is contained in:
parent
c728795a9a
commit
099a42d214
@ -50,6 +50,7 @@ function get_values {
|
|||||||
# get current prices from exchange
|
# get current prices from exchange
|
||||||
get_symbols_ticker
|
get_symbols_ticker
|
||||||
# get values from csv files
|
# get values from csv files
|
||||||
|
|
||||||
for f_asset in $f_asset_histories\
|
for f_asset in $f_asset_histories\
|
||||||
BTC${CURRENCY}\
|
BTC${CURRENCY}\
|
||||||
$f_eco_assets\
|
$f_eco_assets\
|
||||||
@ -111,14 +112,15 @@ function get_values {
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
#unset f_first
|
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# use reverse as default to be 0 latest, 1 pre latest,...
|
# use reverse as default to be 0 latest, 1 pre latest,...
|
||||||
unset v
|
unset v
|
||||||
declare -ng v=vr
|
declare -Ag v
|
||||||
|
for key in "${!vr[@]}"; do
|
||||||
|
v[$key]=${vr[$key]}
|
||||||
|
done
|
||||||
|
unset vr
|
||||||
|
|
||||||
# write values file for overview
|
# write values file for overview
|
||||||
for i in "${!v[@]}"
|
for i in "${!v[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user