mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-01-30 03:55:39 +00:00
Fix presets processing (needs eval, not declare)
This commit is contained in:
parent
34bb0d82d4
commit
8717ec6928
|
@ -112,11 +112,11 @@ build_preset_config() {
|
|||
"change" )
|
||||
if [[ "$read_preset" == "$current_preset" ]]; then
|
||||
if [[ "$target_file" = \$* ]]; then # Read current target file and resolve if it is a variable
|
||||
declare -g "target_file=$target_file"
|
||||
eval target_file=$target_file
|
||||
fi
|
||||
local read_target_file="$target_file"
|
||||
if [[ "$defaults_file" = \$* ]]; then #Read current defaults file and resolve if it is a variable
|
||||
declare -g "defaults_file=$defaults_file"
|
||||
eval defaults_file=$defaults_file
|
||||
fi
|
||||
local read_defaults_file="$defaults_file"
|
||||
if [[ "$read_system_enabled" == "true" ]]; then
|
||||
|
|
Loading…
Reference in a new issue