Skip to content

Commit a379730

Browse files
author
root
committed
fix: resolve shellcheck SC2034 warnings in diagnostic-report script
Remove unused variables C_BOLD, bar, and COMPOSE_CMD that triggered SC2034 (unused variable) warnings under shellcheck -S warning.
1 parent 9fee045 commit a379730

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

docs/perfsonar/tools_scripts/perfSONAR-diagnostic-report.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ setup_colors() {
5252
C_YELLOW='\033[0;33m'
5353
C_RED='\033[0;31m'
5454
C_CYAN='\033[1;36m'
55-
C_BOLD='\033[1m'
5655
C_RESET='\033[0m'
5756
else
58-
C_GREEN='' C_YELLOW='' C_RED='' C_CYAN='' C_BOLD='' C_RESET=''
57+
C_GREEN='' C_YELLOW='' C_RED='' C_CYAN='' C_RESET=''
5958
fi
6059
}
6160

@@ -68,8 +67,6 @@ ok() { printf "${C_GREEN}[OK]${C_RESET} %s\n" "$*"; }
6867
# Section header (terminal + report)
6968
section() {
7069
local title="$1"
71-
local bar
72-
bar=$(printf '=%.0s' $(seq 1 ${#title}))
7370
{
7471
echo ""
7572
echo "========================================================================"
@@ -215,14 +212,12 @@ preflight() {
215212
CONF_DIR="$BASE_DIR/conf"
216213

217214
# Container runtime detection
218-
RUNTIME="" COMPOSE_CMD=""
215+
RUNTIME=""
219216
if [[ "$DEPLOY_TYPE" == "container" ]]; then
220217
if command -v podman >/dev/null 2>&1; then
221218
RUNTIME="podman"
222-
COMPOSE_CMD="podman-compose"
223219
elif command -v docker >/dev/null 2>&1; then
224220
RUNTIME="docker"
225-
COMPOSE_CMD="docker compose"
226221
fi
227222
fi
228223

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
98d5d5e7acdc6060e35a44739c501062f8ef5a474aadcc88b081abb15572c9c3 perfSONAR-diagnostic-report.sh
1+
2615a29d65e285391adb547046584c4534ea548e69571b67e0cf35773b010c57 perfSONAR-diagnostic-report.sh

docs/perfsonar/tools_scripts/scripts.sha256

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ a38262af72d82cfa8136f00580be067ade36d104004e1840c6dd503213e63f0e update-perfson
2020
d8e3cc4a03725c7fb6e12c13e5036e7c6a3af301a1f1e728690ce9ad3ab8aa96 install_tools_scripts.sh
2121
b332ee5ae579fc91c555b6b4dda1897e8ba2835d70c588610520354697c688da perfSONAR-orchestrator.sh
2222
415a388dea670cb45099d18ad5407bf618c0632e953705be150f16781f89bf3f perfSONAR-install-flowd-go.sh
23+
2615a29d65e285391adb547046584c4534ea548e69571b67e0cf35773b010c57 perfSONAR-diagnostic-report.sh

0 commit comments

Comments
 (0)