Skip to content

Commit d4821cd

Browse files
author
Michae2xl
committed
Fix shellcheck SC2168 — remove local outside function in troubleshoot.sh
1 parent f91b772 commit d4821cd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

scripts/troubleshoot.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ soft "All containers up" "cd ${BASE_DIR} && docker compose ps --status running |
3737
# --- Container Health ---
3838
echo -e "\n${CYAN}Container health:${NC}"
3939
for c in $(docker ps --format '{{.Names}}' 2>/dev/null | grep "^freedom-"); do
40-
local health
4140
health=$(docker inspect --format='{{.State.Health.Status}}' "$c" 2>/dev/null || echo "none")
4241
case "$health" in
4342
healthy) ok "${c}: healthy" ;;
@@ -78,7 +77,6 @@ check "fail2ban running" "systemctl is-active fail2ban"
7877
soft "CrowdSec running" "systemctl is-active crowdsec"
7978
soft "SSH key-only" "grep -q 'PasswordAuthentication no' /etc/ssh/sshd_config"
8079

81-
local ssh_port
8280
ssh_port=$(grep "^Port " /etc/ssh/sshd_config 2>/dev/null | awk '{print $2}')
8381
if [[ "$ssh_port" != "22" && -n "$ssh_port" ]]; then
8482
ok "SSH port: ${ssh_port} (non-standard)"

0 commit comments

Comments
 (0)