aboutsummaryrefslogblamecommitdiffstats
path: root/modules/publicip
blob: 2e94e043db60cac6a7fdbf24963a955f2164f729 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                        
#!/bin/bash

# Prints out your public IP adress
# Depends on curl

PREFIX=' '

get_pub_ip()
{
    echo "$PREFIX$(curl -s ifconfig.co)"
}

get_pub_ip