fix: first run
This commit is contained in:
parent
ad6f641c8c
commit
87dd453a1e
@ -1,6 +1,7 @@
|
||||
function get_coingecko_data {
|
||||
# get data from coingecko
|
||||
local f_gecko_currencies="usd eur"
|
||||
[ -f COINGECKO_GET_ASSETS_CMD_OUT ] || touch -t 197001010000 COINGECKO_GET_ASSETS_CMD_OUT
|
||||
if find COINGECKO_GET_ASSETS_CMD_OUT -mmin +5 2>/dev/null | grep -q COINGECKO_GET_ASSETS_CMD_OUT
|
||||
then
|
||||
for f_gecko_currency in ${f_gecko_currencies}
|
||||
|
@ -1,7 +1,7 @@
|
||||
function market_performance {
|
||||
g_echo_note "RUNNING FUNCTION ${FUNCNAME} $@"
|
||||
|
||||
if find MARKET_PERFORMANCE.csv -mmin -${INTERVAL_MIN} | grep -q "MARKET_PERFORMANCE.csv"
|
||||
if find MARKET_PERFORMANCE.csv -mmin -${INTERVAL_MIN} 2>/dev/null | grep -q "MARKET_PERFORMANCE.csv"
|
||||
then
|
||||
g_echo_note "MARKET_PERFORMANCE.csv already downloaded in the last ${INTERVAL_MIN} minutes"
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user