diff options
author | Singustromo <singustromo@disroot.org> | 2023-11-01 09:57:11 +0100 |
---|---|---|
committer | Singustromo <singustromo@disroot.org> | 2023-11-01 09:57:11 +0100 |
commit | ba1ce0b60b78ecc115ba1ebdd1dc9e4a5f8a9802 (patch) | |
tree | d97e465e96cc1e8eba4a3587fd19232631c4c716 | |
parent | b889d6528914776fcf9cc175e5baaf0d717b203d (diff) | |
download | radio-sh-ba1ce0b60b78ecc115ba1ebdd1dc9e4a5f8a9802.tar.gz radio-sh-ba1ce0b60b78ecc115ba1ebdd1dc9e4a5f8a9802.zip |
fixed global variable prefix
-rwxr-xr-x | radio | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/radio b/radio index 34c33d9..ac09629 100755 --- a/radio +++ b/radio @@ -449,7 +449,7 @@ Config:dump_options() { if [ "$value" != "null" ]; then # ignore nonexistant options optionlist+="$value\n" else # get value from array - Sys:log "$name not set. Using default: ${option[$name]}" + Sys:log "$name not set. Using default: ${_option[$name]}" optionlist+="${_option[$name]}\n" fi done <<< "$option_values" @@ -460,7 +460,7 @@ Config:dump_options() { # loads the options from the configuration file # into the $_option associative array -# Depends: Config:dump_options(), ${option[internal_delimiter]}, +# Depends: Config:dump_options(), ${_option[internal_delimiter]}, # Sys:log(), -A option=(), # TODO reduce execution time (currently 35% of total exec time) Config:load_options() { @@ -606,7 +606,7 @@ Config:print_stations() { } # prints the options with respective values -# Depends: Config:dump_options(), Sys:msg(), ${option[internal_delimiter]} +# Depends: Config:dump_options(), Sys:msg(), ${_option[internal_delimiter]} Config:print_options() { local optionlist optionlist="$(Config:dump_options | sort)" |