From a529bdff01885a3acf405ad0cce8e47ebeb734e7 Mon Sep 17 00:00:00 2001 From: koksnuss Date: Tue, 15 May 2018 11:35:46 +0200 Subject: [PATCH] use the same output for the short text as for the long text, polish --- modules/ip | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/ip b/modules/ip index 4703fff..c778e8e 100755 --- a/modules/ip +++ b/modules/ip @@ -1,5 +1,7 @@ #!/bin/bash -ip=$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//') -echo $ip -echo "" + +IP=$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//') + +echo "$IP" +echo "$IP" echo ""