Skip to content

Commit

Permalink
internet reverse reorder and keep unique (fixes #2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLKwong committed Mar 26, 2021
1 parent c82d44a commit c886039
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/internet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ function internet {

# echo " INFO: $info"
# echo ""
echo " IP: $ip"
echo " ORG: $org"
echo " COUNTRY: $country"
echo " CITY: $city"
echo " POSTAL: $postal"
echo " TIMEZONE: $timezone"
# echo " IP: $ip"
# echo " ORG: $org"
# echo " COUNTRY: $country"
# echo " CITY: $city"
# echo " POSTAL: $postal"
# echo " TIMEZONE: $timezone"


echo "$ip"
echo "$org"
if [ -z $postal ]; then
if [ -z "$postal" ]; then
echo "$country, $city, \"postal\": \"n/a\""
else
echo "$country, $city, $postal"
Expand Down

0 comments on commit c886039

Please sign in to comment.