From a79cfd1d177f1b7cecd4e8b2907c0ba546a34762 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Fri, 21 Apr 2023 09:44:19 +0200 Subject: [PATCH] Use array for MAILBOX_DIR, to permit mutliple mailboxes --- roles/i3/files/newmail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/i3/files/newmail b/roles/i3/files/newmail index 49dc9b3..50ade4f 100755 --- a/roles/i3/files/newmail +++ b/roles/i3/files/newmail @@ -8,7 +8,7 @@ if [ -z "$LABEL" ]; then LABEL='New: ' fi -nb_new=$(find "$MAILBOX_DIR" -type d -name new -not -empty -execdir ls '{}' \+ | wc -l) +nb_new=$(find "${MAILBOX_DIR[@]}" -type d -name new -not -empty -execdir ls '{}' \+ | wc -l) if [ "$nb_new" -gt 0 ]; then echo "${LABEL}${nb_new}"