Fix TYPE-MISMATCH issues in email diagnostic scripts

modules/email/email-diagnostics.sh:
- Quote account_found variable in comparisons (lines 374, 378)

modules/email/deliverability-test.sh:
- Quote listed variable in comparison (line 166)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
cschantz
2026-02-10 22:27:48 -05:00
parent 5dc5d3ce7a
commit 73c0aef701
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -371,11 +371,11 @@ if [ "$check_type" != "2" ]; then
fi
# If successful logins exist, account must exist (even if we can't find the directory)
if [ $account_found -eq 0 ] && [ "$auth_success" -gt 0 ]; then
if [ "$account_found" -eq 0 ] && [ "$auth_success" -gt 0 ]; then
account_found=1
print_success "Email account EXISTS (confirmed by successful logins)"
print_warning "Note: Mailbox directory not found in standard locations"
elif [ $account_found -eq 1 ]; then
elif [ "$account_found" -eq 1 ]; then
print_success "Email account EXISTS on this server"
# Show mailbox details if we found the directory