mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-30 11:33:28 +01:00
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:
parent
5a778540da
commit
dbd20362ff
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user