Fix return value sense of is_port_list

Probably fixes #91
This commit is contained in:
Oliver Jowett 2016-01-24 22:11:48 +00:00
parent 2a07897354
commit cd86032be2

View file

@ -184,9 +184,9 @@ is_port_number() {
is_port_list() { is_port_list() {
for port in $(echo $1 | sed 's@,@ @g'); do for port in $(echo $1 | sed 's@,@ @g'); do
if ! is_port_number "$port"; then return 0; fi if ! is_port_number "$port"; then return 1; fi
done done
return 1 return 0
} }
db_input high $NAME/auto-start || true db_input high $NAME/auto-start || true