changed to declare to set global values.

This commit is contained in:
Llewellyn van der Merwe 2024-05-18 22:08:23 +02:00
parent 69738f8be6
commit 5aa4369f83
Signed by: Llewellyn
GPG Key ID: A9201372263741E7

View File

@ -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