This commit is contained in:
parent
7d72d6095f
commit
ebec70a7dc
1 changed files with 5 additions and 1 deletions
|
|
@ -9,7 +9,11 @@
|
||||||
runtimeInputs = with pkgs; [ curl ];
|
runtimeInputs = with pkgs; [ curl ];
|
||||||
|
|
||||||
text = ''
|
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"
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue