#!/usr/bin/env sh
# SPDX-License-Identifier: MIT
# ──────────────────────────────────────────────────────────────────────────────
# $source: cappysan-dotfile-scripts$
# ──────────────────────────────────────────────────────────────────────────────
#
# NAME
#      get-public-ip - get the public ip
#
# SEE ALSO
#      curl(1)
#
set -eu -o pipefail
exec echo $(curl -sSL "$@" --connect-timeout 10 --insecure https://api.ipify.org)
