bin/public-ip (view raw)
1 2 3 4 5 6 7
#!/bin/sh if [ -f '/usr/bin/curl' ] then curl ipinfo.io/ip else wget -qO- ipinfo.io/ip fi