Show my public IP script

This commit is contained in:
Martin Blazik
2022-07-28 06:23:38 +02:00
parent 85db139596
commit b3d376dfb8

8
bin/myip Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
if [[ "$1" == "-d" ]]; then
curl -s ipinfo.io | jq
else
curl ipinfo.io/ip && echo
fi