1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 20:31:07 +01:00

scripts: fix syntax

This commit is contained in:
Kierán Meinhardt
2019-08-18 19:15:54 +02:00
parent 7b837372e6
commit 0557d4e76a
3 changed files with 6 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
{ writeShellScriptBin, curl, jq }:
{ writeShellScriptBin, curl }:
writeShellScriptBin "wttr" ''
${curl}/bin/curl -s -H "Accept-Language: ''${LANG%_*}" --compressed "wttr.in/''${1-"@$(${curl}/bin/curl -s ipinfo.io | ${jq}/bin/jq -r .ip)"}?0"
${curl}/bin/curl -s -H "Accept-Language: ''${LANG%_*}" --compressed "wttr.in/''${1-}?0"
''