aboutsummaryrefslogtreecommitdiff
path: root/lib/util/config.bash
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-03-06 11:04:33 +0100
committerPatrick Spek <p.spek@tyil.nl>2023-03-06 11:04:33 +0100
commite263f8606a9cbbe68595db68b4a56e34866a8d1d (patch)
tree1517a5a249d3a07881fea438f0c598ddb952d07d /lib/util/config.bash
parentf4ece68ecf8cfc855e54f2d5935ed2a2b8b0c4af (diff)
Various fixes to make the latest shellcheck pass
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 }')