From 13b43561f8e6eccc7cbcae986455b400dd438343 Mon Sep 17 00:00:00 2001 From: shim_ Date: Tue, 14 Jun 2016 13:28:15 +0200 Subject: [PATCH] add quotes --- target/addmailuser | 2 +- target/delmailuser | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target/addmailuser b/target/addmailuser index a88062f2..c9b1ff78 100755 --- a/target/addmailuser +++ b/target/addmailuser @@ -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 diff --git a/target/delmailuser b/target/delmailuser index 6239cda6..942b7463 100755 --- a/target/delmailuser +++ b/target/delmailuser @@ -3,13 +3,13 @@ DATABASE=/tmp/docker-mailserver/postfix-accounts.cf function usage { - echo Usage: delmailuser + echo "Usage: delmailuser " exit 1 } if [ ! -z "$1" ]; then ENTRIES=$(grep "$USER" -vi $DATABASE) - echo $ENTRIES > $DATABASE + echo "$ENTRIES" > $DATABASE else usage fi