From 77065ebe39fe5891fa0e8d9780110ffa8443d394 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Wed, 11 May 2022 12:25:43 +0200 Subject: [PATCH] Drop localhost --- .bin/whoamip | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bin/whoamip b/.bin/whoamip index 45d6586..4181daa 100755 --- a/.bin/whoamip +++ b/.bin/whoamip @@ -1,2 +1,5 @@ #!/usr/bin/env bash -ip addr show $@ | awk '/inet / {gsub(/\/.*/,"",$2); print $2}' + +# Get local IP + +ip addr show $@ | awk '/inet / {gsub(/\/.*/,"",$2); print $2}' | tail -n 1