[mlmmj] [PATCH 2/2] src/mlmmj-make-ml.in: use the YES from -a

Geert Stappers <[email protected]>
Newsgroups org.mlmmj.mlmmj
Message-ID <[email protected]>
Replaced the test on non-zero lenght string
with an actual string compare.
---
 src/mlmmj-make-ml.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlmmj-make-ml.in b/src/mlmmj-make-ml.in
index c93084f..58fba8d 100755
--- a/src/mlmmj-make-ml.in
+++ b/src/mlmmj-make-ml.in
@@ -135,7 +135,7 @@ fi
 ALIAS="$LISTNAME:  \"|$MLMMJRECEIVE -L $SPOOLDIR/$LISTNAME/\""
 CRONENTRY="0 */2 * * * \"$MLMMJMAINTD -F -L $SPOOLDIR/$LISTNAME/\""
 
-if [ -n "$A_CREATE" ]; then
+if [ "$A_CREATE" = "YES" ]; then
 	echo "I want to add the following to your $ALIASFILE file:"
 	echo "$ALIAS"
 
-- 
2.11.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.