scripts/lip: Fix
This commit is contained in:
parent
16f5a0a9a5
commit
8e6203ce7d
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#! nix-shell -i bash --pure
|
#! nix-shell -i bash --pure
|
||||||
#! nix-shell -p bash jq curl findutils coreutils
|
#! nix-shell -p bash jq curl cacert findutils coreutils
|
||||||
|
|
||||||
set -euo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
url="https://ip.frogeye.fr/json"
|
url="https://ip.frogeye.fr/json"
|
||||||
cachedir="$HOME/.cache/lip"
|
cachedir="$HOME/.cache/lip"
|
||||||
|
@ -16,7 +16,6 @@ then
|
||||||
jq_sel="$@"
|
jq_sel="$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -n "$ip" ]
|
if [ -n "$ip" ]
|
||||||
then
|
then
|
||||||
cachefile="$cachedir/$ip"
|
cachefile="$cachedir/$ip"
|
||||||
|
|
Loading…
Reference in a new issue