From: Michael Tremer Date: Fri, 21 Jul 2017 20:14:20 +0000 (+0200) Subject: list: Make use of the assign function to set variables X-Git-Tag: 009~125 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=042ccabdc7e05a0e33cafa4233d82764ee88cec9;p=network.git list: Make use of the assign function to set variables Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.list b/src/functions/functions.list index 13d82ef8..fa604275 100644 --- a/src/functions/functions.list +++ b/src/functions/functions.list @@ -51,9 +51,9 @@ list_append_one() { assert [ ${list} != "list" ] if [ -n "${!list}" ]; then - printf -v ${list} -- "${!list} $@" + assign "${list}" "${!list} $@" else - printf -v ${list} -- "$@" + assign "${list}" "$@" fi }