1
1
Fork 0
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-05-31 10:26:05 +02:00

More detailed error message

This commit is contained in:
Casper 2020-07-19 21:23:59 +02:00 committed by GitHub
parent f206ad7ee1
commit 11ab4a84a9
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,9 @@ escape() {
echo "${1//./\\.}"
}
[ -z "$EMAIL" ] || [ -z "$RECIPIENT" ] && { usage; errex "No email specifed"; }
[ -z "$EMAIL" ] && { usage; errex "Error: No alias specified"; }
[ -z "$RECIPIENT" ] && { usage; errex "Error: No recipient specified"; }
[ -s "$DATABASE" ] || exit 0
#CNT=$(grep "^$EMAIL" $DATABASE | wc -w | awk '{print $1}')