1
1
Fork 0
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-06-05 18:46:05 +02:00
docker-mailserver/target/scripts/helpers/utils.sh

14 lines
227 B
Bash
Raw Normal View History

#! /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}"
}