Use array for MAILBOX_DIR, to permit mutliple mailboxes
This commit is contained in:
parent
de4ebdc14d
commit
a79cfd1d17
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue