Compare commits
No commits in common. "da4cf3b239a79faeb4c1fd51dc69e6446c1bff2b" and "f6960ef9deb701ead9fdb0a1caf0bb24b3694c3a" have entirely different histories.
da4cf3b239
...
f6960ef9de
@ -18,16 +18,7 @@ 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
|
||||||
if ! [ -e "BOERSE_DE_CMD_OUT-${f_name}" ]
|
[ -e "BOERSE_DE_CMD_OUT-${f_name}" ] || echo 0 >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