#!/usr/bin/env bash # # Display external IP address. # # Source: https://github.com/thirtythreeforty/dotfiles/blob/master/bin/extip set -euo pipefail if ! command -v curl &> /dev/null; then echo "Error: curl is required" >&2 exit 1 fi curl -sf icanhazip.com