(#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:
parent
3fc5d517cd
commit
02f70dd065
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user