From 11ab4a84a90ec4a4a413c21f99b08ad14b23cf5b Mon Sep 17 00:00:00 2001 From: Casper Date: Sun, 19 Jul 2020 21:23:59 +0200 Subject: [PATCH] More detailed error message --- target/bin/delalias | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/bin/delalias b/target/bin/delalias index c97a1c39..07faed9a 100755 --- a/target/bin/delalias +++ b/target/bin/delalias @@ -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}')