Skip to content

Commit 02f70dd

Browse files
iavclaude
andcommitted
(#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>
1 parent 3fc5d51 commit 02f70dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/functions/configuration/interactive.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ function interactive_config_prepare_terminal() {
3030
# $1: variable name
3131
# $2: variable value
3232
function set_interactive_config_value() {
33-
eval "$1"='$2'
34-
eval "ARMBIAN_INTERACTIVE_CONFIGS[${1}]"='$2'
33+
declare -g "${1}=${2}"
34+
ARMBIAN_INTERACTIVE_CONFIGS["${1}"]="${2}"
3535
}
3636

3737
function interactive_finish() {

0 commit comments

Comments
 (0)