changed to declare to set global values.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user