From f21d16aa60b886554563fe3f4d4a3cffef481b7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 9 Nov 2023 15:07:34 +0100 Subject: [PATCH] Continued: - not less websites set their (sub-)domain name as software - maybe let's double-check them if they have fixed it --- nodeinfo.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nodeinfo.sh b/nodeinfo.sh index 8c3e370..3ec3862 100755 --- a/nodeinfo.sh +++ b/nodeinfo.sh @@ -6,7 +6,7 @@ SOFTWARE_LIST="" if [ "$1" = "--help" ] then - echo "Usage: $0 [file|--software|--nodeinfo|--generator|--timeout]" + echo "Usage: $0 [file|--software|--nodeinfo|--generator|--timeout|--same]" exit 255 elif [ -n "$1" -a -f "$1" ] then @@ -28,6 +28,10 @@ elif [ "$1" = "--generator" ] then DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE detection_mode='GENERATOR' ORDER BY last_updated ASC;") MODE="generator" +elif [ "$1" = "--same" ] +then + DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE domain=software ORDER BY last_updated ASC;") + MODE="same" else DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE software IS NULL AND nodeinfo_url IS NOT NULL ORDER BY last_updated ASC;") fi -- 2.39.5