1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-09 23:07:35 +02:00

refactoring: split helper functions into smaller scripts (#2420)

This commit is contained in:
Georg Lauterbach
2022-02-21 11:56:57 +01:00
committed by GitHub
parent 2927cc47c7
commit b61dfe1e24
41 changed files with 389 additions and 396 deletions

13
target/scripts/helpers/utils.sh Executable file
View File

@ -0,0 +1,13 @@
#! /bin/bash
function _escape
{
echo "${1//./\\.}"
}
# Check if string input is an empty line, only whitespaces
# or `#` as the first non-whitespace character.
function _is_comment
{
grep -q -E "^\s*$|^\s*#" <<< "${1}"
}