fixes if boerse.de is down
This commit is contained in:
parent
e5ad736799
commit
da4cf3b239
@ -20,7 +20,6 @@ function get_boerse_de {
|
|||||||
fi
|
fi
|
||||||
if ! [ -e "BOERSE_DE_CMD_OUT-${f_name}" ]
|
if ! [ -e "BOERSE_DE_CMD_OUT-${f_name}" ]
|
||||||
then
|
then
|
||||||
set -x
|
|
||||||
local f_old_value=$(tail -n 1 asset-histories/${f_name}.history.csv | cut -d, -f2)
|
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]+$"
|
if echo ${f_old_value} | egrep -q "^[0-9]*\.[0-9]+$"
|
||||||
then
|
then
|
||||||
@ -28,7 +27,6 @@ function get_boerse_de {
|
|||||||
else
|
else
|
||||||
echo 0 >BOERSE_DE_CMD_OUT-${f_name}
|
echo 0 >BOERSE_DE_CMD_OUT-${f_name}
|
||||||
fi
|
fi
|
||||||
set +x
|
|
||||||
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…
Reference in New Issue
Block a user