mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 18:15:29 +02:00
scripts: Improve error handling, when parameters are missing (#2854)
This commit is contained in:
parent
caf2338201
commit
897d84f0f9
16 changed files with 26 additions and 20 deletions
|
@ -5,10 +5,9 @@ source /usr/local/bin/helpers/index.sh
|
|||
|
||||
function _main
|
||||
{
|
||||
[[ ${1:-} == 'help' ]] && { __usage ; exit 0 ; }
|
||||
_require_n_parameters_or_print_usage 1 "${@}"
|
||||
|
||||
local DOMAIN="${1}"
|
||||
[[ -z ${DOMAIN} ]] && { __usage ; _exit_with_error 'No domain specified' ; }
|
||||
|
||||
_exclude_domain_from_relayhosts
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue