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>
This commit is contained in:
Bastian Bittorf 2014-04-20 22:55:48 +02:00 committed by Felix Fietkau
parent 73a88451dd
commit 51766c25e9

View file

@ -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