fix shell escaping bug in append() function
authorFelix Fietkau <nbd@openwrt.org>
Mon, 9 Oct 2006 04:29:27 +0000 (04:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 9 Oct 2006 04:29:27 +0000 (04:29 +0000)
SVN-Revision: 4981

openwrt/package/base-files/default/etc/functions.sh

index ce22ed151c3e25dd2eaf9aa6ac6c25e7f87e1e00..2ce172eb358fb2cd2e6020831075d53fea78f47f 100755 (executable)
@@ -25,7 +25,7 @@ append() {
        local var="$1"
        local value="$2"
        local sep="${3:- }"
        local var="$1"
        local value="$2"
        local sep="${3:- }"
-       eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}$value\""
+       eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}\$value\""
 }
 
 reset_cb() {
 }
 
 reset_cb() {