Return early if the location is unknown
All checks were successful
/ check (push) Successful in 59s

This commit is contained in:
Oliver Davies 2025-09-13 21:55:31 +01:00
parent 7d72d6095f
commit ebec70a7dc

View file

@ -9,7 +9,11 @@
runtimeInputs = with pkgs; [ curl ];
text = ''
curl -s https://wttr.in/Caerleon?format=%t
out="$(curl -s https://wttr.in/Caerleon?format=%t)"
[[ "$out" == *"Unknown location"* ]] && exit 1
echo "$out"
'';
})
];