- Filter output to remove errors and only keep IP

This commit is contained in:
Arnaud G. GIBERT 2025-09-09 17:50:31 +02:00
parent 082f0a475e
commit 15b28c8f43
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,12 @@
------------------------------------------------------------------------------------------------------------------------------------
MyIP V 1.0.1 - A. GIBERT - 2025/07/26
------------------------------------------------------------------------------------------------------------------------------------
- Filter output to remove errors and only keep IP
------------------------------------------------------------------------------------------------------------------------------------
MyIP V 1.0.0 - A. GIBERT - 2025/04/25
------------------------------------------------------------------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
%define name myip
%define version 1.0.0
%define version 1.0.1
%define release %mkrel 1rx3
%global debug_package %{nil}
@ -50,5 +50,8 @@ install -D -pm 755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
%changelog
* Sat Jul 26 2025 Arnaud G. GIBERT <arnaud@rx3.net> - 1.0.1-1rx3.mga9
- Filter output to remove errors and only keep IP
* Sun Apr 6 2025 Arnaud G. GIBERT <arnaud@rx3.net> - 1.0.0-1rx3.mga9
- Create initial SPEC file for 1.0.0 on Mageia 9

View File

@ -1,3 +1,3 @@
#!/bin/bash
dig +short myip.opendns.com @resolver1.opendns.com
dig +short myip.opendns.com @resolver1.opendns.com | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'