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.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util/config.bash b/lib/util/config.bash
index eecc31a..78841e1 100644
--- a/lib/util/config.bash
+++ b/lib/util/config.bash
@@ -111,7 +111,9 @@ config_subkeys_for() {
while read -r result
do
- results+=("$result")
+ local 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 }')
done