You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
265 B

#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_DIR/helpers.sh"
print_ip_address() {
local ip_address=$(curl --max-time 1.5 --silent http://ip.me)
echo ${ip_address}
}
main() {
print_ip_address
}
main