Compare commits
2 Commits
f6960ef9de
...
da4cf3b239
Author | SHA1 | Date | |
---|---|---|---|
da4cf3b239 | |||
e5ad736799 |
@ -18,7 +18,16 @@ function get_boerse_de {
|
|||||||
else
|
else
|
||||||
g_echo_warn "BOERSE_DE_CMD_OUT-${f_name}.tmp has wrong Syntax. - Not updating ${f_name} Index $(tail -n 10 BOERSE_DE_CMD_OUT-${f_name}.tmp)"
|
g_echo_warn "BOERSE_DE_CMD_OUT-${f_name}.tmp has wrong Syntax. - Not updating ${f_name} Index $(tail -n 10 BOERSE_DE_CMD_OUT-${f_name}.tmp)"
|
||||||
fi
|
fi
|
||||||
[ -e "BOERSE_DE_CMD_OUT-${f_name}" ] || echo 0 >BOERSE_DE_CMD_OUT-${f_name}
|
if ! [ -e "BOERSE_DE_CMD_OUT-${f_name}" ]
|
||||||
|
then
|
||||||
|
local f_old_value=$(tail -n 1 asset-histories/${f_name}.history.csv | cut -d, -f2)
|
||||||
|
if echo ${f_old_value} | egrep -q "^[0-9]*\.[0-9]+$"
|
||||||
|
then
|
||||||
|
echo ${f_old_value} >BOERSE_DE_CMD_OUT-${f_name}
|
||||||
|
else
|
||||||
|
echo 0 >BOERSE_DE_CMD_OUT-${f_name}
|
||||||
|
fi
|
||||||
|
fi
|
||||||
echo "${f_timestamp},$(cat BOERSE_DE_CMD_OUT-${f_name})" >>asset-histories/${f_name}.history.csv
|
echo "${f_timestamp},$(cat BOERSE_DE_CMD_OUT-${f_name})" >>asset-histories/${f_name}.history.csv
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user