From: Bastian Bittorf Date: Sun, 20 Apr 2014 20:55:48 +0000 (+0200) Subject: sh/jshn.sh - json_cleanup() dont pollute env with local vars X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=commitdiff_plain;h=51766c25e94cb991ba37e643b471bbe1fc7ecd43;ds=sidebyside 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 --- 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