More fixes on lip
This commit is contained in:
parent
d1ae06e7ef
commit
910e7fae63
|
@ -6,14 +6,15 @@ url="https://ip.frogeye.fr/json"
|
|||
cachedir="$HOME/.cache/lip"
|
||||
|
||||
ip="${1:-}"
|
||||
if [ $# -gt 0 ]
|
||||
jq_sel="del(.user_agent)"
|
||||
|
||||
if [ $# -gt 1 ]
|
||||
then
|
||||
shift
|
||||
jq_sel="$@"
|
||||
else
|
||||
jq_sel="del(.user_agent)"
|
||||
fi
|
||||
|
||||
|
||||
if [ -n "$ip" ]
|
||||
then
|
||||
cachefile="$cachedir/$ip"
|
||||
|
|
Loading…
Reference in a new issue