From 5aa4369f835f208f380df84ccc2311a4473fc2da Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Sat, 18 May 2024 22:08:23 +0200 Subject: [PATCH] changed to declare to set global values. --- src/octojpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octojpack b/src/octojpack index 3205644..e0bfd3e 100755 --- a/src/octojpack +++ b/src/octojpack @@ -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