diff options
author | lassulus <lassulus@lassul.us> | 2022-11-22 15:52:47 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-11-22 15:52:47 +0100 |
commit | aa32544dd3b998b9a5a1b73c51c28086b90770bc (patch) | |
tree | ca54fdae591684dc69154eb3d91ffed7fd937443 /krebs | |
parent | fef385511d07c1ea5be1eae4fd8dd7eba563ab2c (diff) |
reaktor2 krebsfood: get last line which is usually the json
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/2configs/reaktor2.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/2configs/reaktor2.nix b/krebs/2configs/reaktor2.nix index 3e88c0899..c79976bd2 100644 --- a/krebs/2configs/reaktor2.nix +++ b/krebs/2configs/reaktor2.nix @@ -241,8 +241,8 @@ let longitude=$(echo "$poi" | jq -r .longitude) fi - osm-restaurants --radius "$2" --latitude "$latitude" --longitude "$longitude" \ - | jq -r '"How about \(.tags.name) (https://www.openstreetmap.org/\(.type)/\(.id)), open \(.tags.opening_hours)?"' + restaurant=$(osm-restaurants --radius "$2" --latitude "$latitude" --longitude "$longitude") + printf '%s' "$restaurant" | tail -1 | jq -r '"How about \(.tags.name) (https://www.openstreetmap.org/\(.type)/\(.id)), open \(.tags.opening_hours)?"' ''; }; } |