changed to declare to set global values.
This commit is contained in:
parent
69738f8be6
commit
5aa4369f83
@ -249,7 +249,7 @@ function setValueFromJson() {
|
||||
}
|
||||
|
||||
# Safely use eval to dynamically set the value
|
||||
eval "$target_var"=\'"$value"\'
|
||||
declare -g "$target_var"="$value"
|
||||
}
|
||||
|
||||
# Get value from JSON
|
||||
|
Loading…
Reference in New Issue
Block a user