diff options
author | Bastian Bittorf <bittorf@bluebottle.com> | 2014-04-21 00:55:48 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-26 23:30:33 +0400 |
commit | 51766c25e94cb991ba37e643b471bbe1fc7ecd43 (patch) | |
tree | cc07a6f3356e3d82bf61c83b72482cb71c5af836 /sh | |
parent | 73a88451ddcc58ba1217dea22fee3eb5b20cf79b (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.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |