Skip to content

Commit cfdc02e

Browse files
committed
fix(shellcheck): prefix unused variables with _ in test-lab-09-01.sh (SC2034)
1 parent d618378 commit cfdc02e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/labs/test-lab-09-01.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [[ "$http_code" =~ ^(200|301|302)$ ]]; then ok "HTTP webmail :9080 responds (
2424
# -- Section 3: Roundcube webmail UI ------------------------------------------
2525
info "Section 3: Roundcube webmail at :9080/mail"
2626
roundcube_code=$(curl -so /dev/null -w "%{http_code}" http://localhost:9080/mail 2>/dev/null || echo "000")
27-
roundcube_body=$(curl -sf http://localhost:9080/mail 2>/dev/null | head -20 || echo "")
27+
_roundcube_body=$(curl -sf http://localhost:9080/mail 2>/dev/null | head -20 || echo "")
2828
info "Roundcube :9080/mail -> $roundcube_code"
2929
if [[ "$roundcube_code" =~ ^(200|301|302)$ ]]; then
3030
ok "Roundcube webmail :9080/mail ($roundcube_code)"
@@ -44,7 +44,7 @@ if command -v nc >/dev/null 2>&1; then
4444
fi
4545
else
4646
# fallback: just test TCP connect
47-
smtp_code=$(curl -sf --max-time 5 smtp://localhost:9025 -o /dev/null -w "%{http_code}" 2>/dev/null || echo "0")
47+
_smtp_code=$(curl -sf --max-time 5 smtp://localhost:9025 -o /dev/null -w "%{http_code}" 2>/dev/null || echo "0")
4848
ok "SMTP :9025 reachability check (nc not available)"
4949
fi
5050

@@ -88,7 +88,7 @@ fi
8888

8989
# -- Section 8: Dovecot status ------------------------------------------------
9090
info "Section 8: Dovecot status"
91-
dovecot_status=$(docker exec it-stack-iredmail-standalone dovecot stop 2>&1 || echo "no")
91+
_dovecot_status=$(docker exec it-stack-iredmail-standalone dovecot stop 2>&1 || echo "no")
9292
# Actually let's check if dovecot process is running
9393
dovecot_running=$(docker exec it-stack-iredmail-standalone pgrep -x dovecot 2>/dev/null && echo "running" || echo "not-found")
9494
info "Dovecot: $dovecot_running"

0 commit comments

Comments
 (0)