aboutsummaryrefslogtreecommitdiff
path: root/lib/util/config.bash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/config.bash')
-rw-r--r--lib/util/config.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util/config.bash b/lib/util/config.bash
index 78841e1..ff8b66a 100644
--- a/lib/util/config.bash
+++ b/lib/util/config.bash
@@ -111,7 +111,10 @@ config_subkeys_for() {
while read -r result
do
- local subkey="$(awk -F. '{ print $1 }' <<< "${result#"$key."}")"
+ local subkey
+
+ subkey="$(awk -F. '{ print $1 }' <<< "${result#"$key."}")"
+
debug "bashtard/config_subkeys" "Found '$subkey' as subkey of '$key' through '$result'"
results+=("$subkey")
done < <(grep "^$key\." "$file" | awk -F= '{ print $1 }')