From 39d75e40bd04b06bf2e3eae001b9d01337272e98 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Fri, 25 Aug 2023 17:50:18 +0200
Subject: [PATCH] Continued: - fixed Shell script - scoreboard for commands is
 total peers

---
 nodeinfo.sh                     | 2 +-
 templates/views/scoreboard.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/nodeinfo.sh b/nodeinfo.sh
index edb2085..cdeaa8f 100755
--- a/nodeinfo.sh
+++ b/nodeinfo.sh
@@ -52,7 +52,7 @@ 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
 
-if [ -z "${DOMAINS}" and -z "${SOFTWARE_LIST}" ]
+if [ -z "${DOMAINS}" -a -z "${SOFTWARE_LIST}" ]
 then
 	echo "$0: No domains or software found! MODE='${MODE}'"
 	exit 255
diff --git a/templates/views/scoreboard.html b/templates/views/scoreboard.html
index 4e40f8d..5cf8d4b 100644
--- a/templates/views/scoreboard.html
+++ b/templates/views/scoreboard.html
@@ -36,7 +36,7 @@
             <thead>
                 <th>№</th>
                 <th>{% if mode in ('software', 'avg_peers', 'obfuscator') %}Software{% elif mode == 'obfuscation' %}Obfuscation status{% elif mode == 'detection_mode' %}Detection mode{% elif mode == 'error_code' %}Error code{% else %}Instance{% endif %}</th>
-                <th>{% if mode == 'reference' %}References{% elif mode == 'avg_peers' %}Average{% elif mode in('software', 'error_code', 'obfuscator', 'obfuscation', 'block_level', 'detection_mode') %}Total{% else %}Blocks{% endif %}</th>
+                <th>{% if mode == 'reference' %}References{% elif mode == 'avg_peers' %}Average{% elif mode in('software', 'error_code', 'obfuscator', 'obfuscation', 'block_level', 'detection_mode', 'command') %}Total{% else %}Blocks{% endif %}</th>
             </thead>
 
             <tbody>
-- 
2.39.5