diff options
| author | Archie Hilton <archie.hilton1@gmail.com> | 2019-10-25 12:43:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-25 12:43:29 +0100 |
| commit | 7cecb2d92b9aa2aa981dd9b2847f3624189f93e8 (patch) | |
| tree | 73ddc9698c52f85c4665287fd352ac74fa770357 /modules/publicip | |
| parent | 570963e08c2b95b2ba0ba97dfed401dd0f06a4e3 (diff) | |
| parent | fe7633cd1b14275540dfba051b67c6bcef03ecc7 (diff) | |
Merge pull request #3 from thytom/parallel
Parallel stuff + New modules
Diffstat (limited to 'modules/publicip')
| -rwxr-xr-x | modules/publicip | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/publicip b/modules/publicip new file mode 100755 index 0000000..2e94e04 --- /dev/null +++ b/modules/publicip @@ -0,0 +1,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 |
