mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-06-22 08:53:39 +02:00
refactoring: split helper functions into smaller scripts (#2420)
This commit is contained in:
parent
2927cc47c7
commit
b61dfe1e24
41 changed files with 389 additions and 396 deletions
13
target/scripts/helpers/utils.sh
Executable file
13
target/scripts/helpers/utils.sh
Executable 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}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue