From 8e6203ce7d05c6bab3a07c0fcca175556d62565b Mon Sep 17 00:00:00 2001 From: Geoffrey Preud'homme Date: Thu, 1 Feb 2024 16:24:19 +0100 Subject: [PATCH] scripts/lip: Fix --- hm/scripts/lip | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hm/scripts/lip b/hm/scripts/lip index 3663bd2..e3f090a 100755 --- a/hm/scripts/lip +++ b/hm/scripts/lip @@ -1,8 +1,8 @@ #!/usr/bin/env nix-shell #! 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" cachedir="$HOME/.cache/lip" @@ -16,7 +16,6 @@ then jq_sel="$@" fi - if [ -n "$ip" ] then cachefile="$cachedir/$ip"