]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.list
zone: Make zone_config_{read,write} behave the same as zone_port_{read,write} do
[people/stevee/network.git] / src / functions / functions.list
index 062df27eb99d30fd20be1c4d5602cd2a4c987e40..0f11c32c3b8f38b423d1670d90eeb1553942135d 100644 (file)
 
 function list_append() {
        local list=${1}
+       assert isset list
+       shift
+
+       local arg
+       for arg in $@; do
+               list_append_one "${list}" "${arg}"
+       done
+}
+
+function list_append_one() {
+       assert [ $# -eq 2 ]
+
+       local list="${1}"
        shift
 
        assert isset list