dotfiles/bin/ipp

5 lines
90 B
Bash
Executable file

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