From 51766c25e94cb991ba37e643b471bbe1fc7ecd43 Mon Sep 17 00:00:00 2001 From: Bastian Bittorf Date: Sun, 20 Apr 2014 22:55:48 +0200 Subject: [PATCH] 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 --- sh/jshn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0