fixes if boerse.de is down

This commit is contained in:
olli 2023-10-03 11:37:38 +02:00
parent e5ad736799
commit da4cf3b239

View File

@ -20,7 +20,6 @@ function get_boerse_de {
fi
if ! [ -e "BOERSE_DE_CMD_OUT-${f_name}" ]
then
set -x
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
@ -28,7 +27,6 @@ function get_boerse_de {
else
echo 0 >BOERSE_DE_CMD_OUT-${f_name}
fi
set +x
fi
echo "${f_timestamp},$(cat BOERSE_DE_CMD_OUT-${f_name})" >>asset-histories/${f_name}.history.csv
}