]> git.ipfire.org Git - people/stevee/network.git/commitdiff
list: Make use of the assign function to set variables
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Jul 2017 20:14:20 +0000 (22:14 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Jul 2017 20:14:20 +0000 (22:14 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.list

index 13d82ef868ac9748a4fed6fb723391d18966bd6c..fa6042757f60a63a94221489e539e0ba85f266e8 100644 (file)
@@ -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
 }