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:
parent
73a88451dd
commit
51766c25e9
1 changed files with 1 additions and 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
|
||||
|
|
Loading…
Reference in a new issue