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

  1. #!/usr/bin/env bash
  2. CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  3. source "$CURRENT_DIR/helpers.sh"
  4. print_ip_address() {
  5. local ip_address=$(curl --max-time 1.5 --silent http://ip.me)
  6. echo ${ip_address}
  7. }
  8. main() {
  9. print_ip_address
  10. }
  11. main