diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-11-04 20:29:24 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-11-04 20:29:24 +0100 |
commit | a2470847c7b923b344939d2cd02a2313158e09ce (patch) | |
tree | a167231a826f4961e188dfb0ac268a6b7bf8f59c | |
parent | 6404ece555af9fd6bc5fab58321a9622089d8110 (diff) |
Fix handle gracefully empty list fed to populatelist().
-rw-r--r-- | mailman/mklist.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mailman/mklist.inc b/mailman/mklist.inc index 3d25d49..0bd6862 100644 --- a/mailman/mklist.inc +++ b/mailman/mklist.inc @@ -34,6 +34,6 @@ populatelist() { list="$1"; shift [ ! -f "$cfgdir/$list.members" ] || add_members -r "$cfgdir/$list.members" -w n -a n "$list" - localuserinfo --custom='%fullname% <%mailaddress%>' "$@" | add_members -r - -w n -a n "$list" + [ -z "$*" ] || localuserinfo --custom='%fullname% <%mailaddress%>' "$@" | add_members -r - -w n -a n "$list" list_members --fullnames --preserve -o "$cfgdir/$list.members" "$list" } |