mirror of
https://github.com/liclac/ambient
synced 2024-11-21 19:33:08 +00:00
DE_ICE: add comment for the jq type check
This commit is contained in:
parent
027fa3c088
commit
fb44a7e32a
1 changed files with 1 additions and 1 deletions
|
@ -4,8 +4,8 @@ ambient_is_ssid "WIFIonICE" "WIFI@DB"; or exit
|
|||
# We can tell if we're on a train if iceportal.de resolves to a private IP addr.
|
||||
string match '172.*' (ambient_resolve4 iceportal.de) >/dev/null; or exit
|
||||
|
||||
# Also double-check that the API returns valid JSON, also not the case at stations.
|
||||
set train_status (curl -s https://iceportal.de/api1/rs/status)
|
||||
|
||||
echo $train_status | jq type >/dev/null 2>&1; or exit
|
||||
|
||||
echo $train_status | jq -r '{
|
||||
|
|
Loading…
Reference in a new issue