dotfiles/bin/public-ip
2020-12-14 20:12:03 +02:00

7 lines
98 B
Bash
Executable file

#!/bin/sh
if [ -f '/usr/bin/curl' ]
then
curl ipinfo.io/ip
else
wget -qO- ipinfo.io/ip
fi