From ab4517bea9da0ff28281670656656e05550d9e1f Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Sat, 3 Apr 2021 11:08:41 +0200 Subject: [PATCH] Add myip script --- script/installpackages | 1 + script/myip | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 script/myip diff --git a/script/installpackages b/script/installpackages index 554723f..7d0b149 100755 --- a/script/installpackages +++ b/script/installpackages @@ -17,6 +17,7 @@ pacman -S --needed --noconfirm base-devel \ docker \ docker-compose \ wireguard-tools \ + whois \ ttf-ubuntu-font-family # ubuntu mono font for alacritty sudo -u $SUDO_USER ./script/installpackagesnonroot diff --git a/script/myip b/script/myip new file mode 100755 index 0000000..c5bc450 --- /dev/null +++ b/script/myip @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# +# Print public IP address + +set -e +curl -s 'https://api.ipify.org?format=text'