mlmmj.mlmmj.org archive mirror
 help / color / mirror / Atom feed
From: Geert Stappers <stappers@stappers.nl>
To: mlmmj@mlmmj.org
Subject: [mlmmj] [PATCH 2/2] src/mlmmj-make-ml.in: use the YES from -a
Date: Thu, 11 May 2017 16:22:43 +0000	[thread overview]
Message-ID: <1494519763-1307-2-git-send-email-stappers@stappers.nl> (raw)

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



             reply	other threads:[~2017-05-11 16:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-11 16:22 Geert Stappers [this message]
2017-05-11 17:12 ` [mlmmj] [PATCH 2/2] src/mlmmj-make-ml.in: use the YES from -a Eric Wong
2017-05-11 17:14 ` Geert Stappers
2017-05-11 17:15 ` Geert Stappers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1494519763-1307-2-git-send-email-stappers@stappers.nl \
    --to=stappers@stappers.nl \
    --cc=mlmmj@mlmmj.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).