summaryrefslogtreecommitdiff
path: root/openwrt/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-09 04:29:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-09 04:29:27 +0000
commit91712548aee6c2b459b93d026bd91cab41f2bb18 (patch)
treedaac0d7418382b050ccb8673f1da9b92f0d847f0 /openwrt/package
parent0bb19484e22b14965b7a992ddaba000442301eef (diff)
downloadmtk-20170518-91712548aee6c2b459b93d026bd91cab41f2bb18.zip
mtk-20170518-91712548aee6c2b459b93d026bd91cab41f2bb18.tar.gz
mtk-20170518-91712548aee6c2b459b93d026bd91cab41f2bb18.tar.bz2
fix shell escaping bug in append() function
SVN-Revision: 4981
Diffstat (limited to 'openwrt/package')
-rwxr-xr-xopenwrt/package/base-files/default/etc/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/etc/functions.sh b/openwrt/package/base-files/default/etc/functions.sh
index ce22ed1..2ce172e 100755
--- a/openwrt/package/base-files/default/etc/functions.sh
+++ b/openwrt/package/base-files/default/etc/functions.sh
@@ -25,7 +25,7 @@ append() {
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() {