File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ bash_object.parse_querytree() {
17
17
--advanced)
18
18
flag_parser_type=' advanced'
19
19
shift ;;
20
- esac done
20
+ esac done ; unset -v arg
21
21
22
22
local querytree=" $1 "
23
23
@@ -180,7 +180,7 @@ bash_object.parse_virtual_object() {
180
180
fi
181
181
182
182
# Parse info about the virtual object
183
- local vmd_dtype=
183
+ local vmd= vmd_key= vmd_value= vmd_dtype=
184
184
while IFS= read -rd \; vmd; do
185
185
if [ -z " $vmd " ]; then
186
186
continue
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ bash_object.traverse-get() {
11
11
local flag_as_what=
12
12
local -a args=()
13
13
14
+ local arg=
14
15
for arg; do case $arg in
15
16
--ref)
16
17
if [ -n " $flag_as_what " ]; then
@@ -32,7 +33,7 @@ bash_object.traverse-get() {
32
33
* )
33
34
args+=(" $arg " )
34
35
;;
35
- esac done
36
+ esac done ; unset -v arg
36
37
37
38
if [ -z " $flag_as_what " ]; then
38
39
bash_object.util.die ' ERROR_ARGUMENTS_INVALID' " Must pass either the '--ref' or '--value' flag"
@@ -75,6 +76,7 @@ bash_object.traverse-get() {
75
76
* ' ]' * ) bash_object.parse_querytree --advanced " $querytree " ;;
76
77
* ) bash_object.parse_querytree --simple " $querytree " ;;
77
78
esac
79
+ local i=
78
80
for (( i= 0 ; i< ${# REPLIES[@]} ; i++ )) ; do
79
81
local key=" ${REPLIES[$i]} "
80
82
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ bash_object.traverse-set() {
9
9
local flag_pass_by_what=
10
10
local -a args=()
11
11
12
+ local arg=
12
13
for arg; do case $arg in
13
14
--ref)
14
15
if [ -n " $flag_pass_by_what " ]; then
@@ -34,7 +35,7 @@ bash_object.traverse-set() {
34
35
esac ; if ! shift ; then
35
36
bash_object.util.die ' ERROR_INTERNAL' ' Shift failed, but was expected to succeed'
36
37
return
37
- fi ; done
38
+ fi ; done ; unset -v arg
38
39
39
40
if [ -z " $flag_pass_by_what " ]; then
40
41
bash_object.util.die ' ERROR_ARGUMENTS_INVALID' " Must pass either the '--ref' or '--value' flag"
@@ -216,6 +217,7 @@ bash_object.traverse-set() {
216
217
* ' ]' * ) bash_object.parse_querytree --advanced " $querytree " ;;
217
218
* ) bash_object.parse_querytree --simple " $querytree " ;;
218
219
esac
220
+ local i=
219
221
for (( i= 0 ; i< ${# REPLIES[@]} ; i++ )) ; do
220
222
local key=" ${REPLIES[$i]} "
221
223
You can’t perform that action at this time.
0 commit comments