Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 193 Bytes
#!/usr/bin/env bash
function whereami() (
/usr/bin/curl --disable ipinfo.io/region
)
if [[ ${BASH_SOURCE[0]} != $0 ]]; then
export -f whereami
else
whereami "${@}"
exit $?
fi