add quotes

This commit is contained in:
shim_ 2016-06-14 13:28:15 +02:00
parent 3b2ae0f1c8
commit 13b43561f8
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ if [ ! -z "$1" ]; then
fi
fi
ENTRY=$(echo "$USER|$(doveadm pw -s SHA512-CRYPT -u $USER -p $PASS)")
echo $ENTRY >> $DATABASE
echo "$ENTRY" >> $DATABASE
else
usage
fi

View file

@ -3,13 +3,13 @@
DATABASE=/tmp/docker-mailserver/postfix-accounts.cf
function usage {
echo Usage: delmailuser <user@domain.tld>
echo "Usage: delmailuser <user@domain.tld>"
exit 1
}
if [ ! -z "$1" ]; then
ENTRIES=$(grep "$USER" -vi $DATABASE)
echo $ENTRIES > $DATABASE
echo "$ENTRIES" > $DATABASE
else
usage
fi