doorstatus: ignore ssl errors

This commit is contained in:
lassulus 2022-10-23 18:28:36 +02:00
parent 83760c3692
commit 411ebc426c

View File

@ -54,7 +54,7 @@ Herr makefu an Kasse 3 bitte, Kasse 3 bitte Herr makefu. Der API Computer ist ma
EOF EOF
) )
state=$(curl https://api.shackspace.de/v1/space | jq .doorState.open) state=$(curl -fSsk https://api.shackspace.de/v1/space | jq .doorState.open)
prevstate=$(cat state ||:) prevstate=$(cat state ||:)
if test "$state" == "$(cat state)";then if test "$state" == "$(cat state)";then