You've already forked docker-mailserver
mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-10 23:12:02 +02:00
fetchmailrc split: ignore commented lines (#2305)
Co-authored-by: Robert Schumann <robert@schumann.link> Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
@@ -49,6 +49,7 @@ do
|
|||||||
# Just the server settings that need to be added to the specific rc.d file
|
# Just the server settings that need to be added to the specific rc.d file
|
||||||
echo "${LINE}" >> "${FETCHMAILRCD}/fetchmail-${COUNTER}.rc"
|
echo "${LINE}" >> "${FETCHMAILRCD}/fetchmail-${COUNTER}.rc"
|
||||||
fi
|
fi
|
||||||
done < "${FETCHMAILRC}"
|
# delete commented lines before parsing
|
||||||
|
done < <(sed '/^[[:space:]]*#/d' "${FETCHMAILRC}")
|
||||||
|
|
||||||
rm "${DEFAULT_FILE}"
|
rm "${DEFAULT_FILE}"
|
||||||
|
Reference in New Issue
Block a user