Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorBastian Bittorf <bittorf@bluebottle.com>2014-04-21 00:55:48 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-04-26 23:30:33 +0400
commit51766c25e94cb991ba37e643b471bbe1fc7ecd43 (patch)
treecc07a6f3356e3d82bf61c83b72482cb71c5af836 /sh
parent73a88451ddcc58ba1217dea22fee3eb5b20cf79b (diff)
sh/jshn.sh - json_cleanup() dont pollute env with local vars
this script is mostly sourced, so we should try to keep the pollution of the users environment as low as possible. make the var 'tmp' local Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
Diffstat (limited to 'sh')
-rw-r--r--sh/jshn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/jshn.sh b/sh/jshn.sh
index b3cd43c..06ba965 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -103,7 +103,7 @@ json_set_namespace() {
}
json_cleanup() {
- local unset
+ local unset tmp
_json_get_var unset JSON_UNSET
for tmp in $unset JSON_VAR; do