One more comma-separated list tweak

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@467 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-02-23 15:56:45 +00:00
parent 5a778540da
commit dbd20362ff

View File

@ -38,7 +38,7 @@ separate_list() {
# command phase # command phase
# #
case "$@" in case "$@" in
*,|,*|*,,*) *,|,*|*,,*|*[[:space:]]*)
[ -n "$terminator" ] && \ [ -n "$terminator" ] && \
$terminator "Invalid comma-separated list \"$@\"" $terminator "Invalid comma-separated list \"$@\""
echo "Warning -- invalid comma-separated list \"$@\"" >&2 echo "Warning -- invalid comma-separated list \"$@\"" >&2