(#9400 P1b) configuration: interactive: replace eval with declare -g

Two eval calls in set_interactive_config_value():
- eval "$1"='$2' → declare -g "${1}=${2}"
- eval "ARMBIAN_INTERACTIVE_CONFIGS[${1}]"='$2' → direct array assignment

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Igor Velkov 2026-03-02 02:51:26 +02:00
parent 3fc5d517cd
commit 02f70dd065
No known key found for this signature in database

View File

@ -30,8 +30,8 @@ function interactive_config_prepare_terminal() {
# $1: variable name
# $2: variable value
function set_interactive_config_value() {
eval "$1"='$2'
eval "ARMBIAN_INTERACTIVE_CONFIGS[${1}]"='$2'
declare -g "${1}=${2}"
ARMBIAN_INTERACTIVE_CONFIGS["${1}"]="${2}"
}
function interactive_finish() {