NOISSUE: fix bats tests (#1738)

diff --git a/modules/kogito-dynamic-resources/added/container-limits b/modules/kogito-dynamic-resources/added/container-limits
index 316cc17..f262ee7 100644
--- a/modules/kogito-dynamic-resources/added/container-limits
+++ b/modules/kogito-dynamic-resources/added/container-limits
@@ -121,17 +121,17 @@
     printf "%s\n" "$@" | sort -g | head -n1
 }
 
-local limit="$(core_limit)"
+limit="$(core_limit)"
 if [ x$limit != x ]; then
     export CONTAINER_CORE_LIMIT="$limit"
 fi
 
-local env_core_limit="$(min $CONTAINER_CORE_LIMIT $JAVA_CORE_LIMIT)"
+env_core_limit="$(min $CONTAINER_CORE_LIMIT $JAVA_CORE_LIMIT)"
 if [ -n "$env_core_limit" ]; then
     export CORE_LIMIT="$env_core_limit"
 fi
 
-local max_mem="$(container_memory)"
+max_mem="$(container_memory)"
 if [ x$max_mem != x ]; then
     export CONTAINER_MAX_MEMORY="$max_mem"
 fi