Skip to content

Commit

Permalink
Fixed: incorrect find ... -exec mv ... for FreeBSD.
Browse files Browse the repository at this point in the history
Thanks to GerryM @https://forum.iredmail.org/
  • Loading branch information
iredmail committed Apr 30, 2021
1 parent 9564d62 commit 4ccde0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en_US/howto/dovecot.imapsieve.md
Expand Up @@ -261,7 +261,7 @@ done
# If there're a lot files, direct `mv` command may fail with error like
# `argument list too long`, so we need `find` in this case.
if [[ X"${KERNEL_NAME}" == X'OPENBSD' ]]; then
if [[ X"${KERNEL_NAME}" == X'OPENBSD' ]] || [[ X"${KERNEL_NAME}" == X'FREEBSD' ]]; then
[[ -d ${SPOOL_SPAM_DIR} ]] && find ${SPOOL_SPAM_DIR} -name '*.eml' -exec mv {} ${SPOOL_LEARN_SPAM_DIR}/ \;
[[ -d ${SPOOL_HAM_DIR} ]] && find ${SPOOL_HAM_DIR} -name '*.eml' -exec mv {} ${SPOOL_LEARN_HAM_DIR}/ \;
else
Expand Down

0 comments on commit 4ccde0b

Please sign in to comment.