From e263f8606a9cbbe68595db68b4a56e34866a8d1d Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 6 Mar 2023 11:04:33 +0100 Subject: Various fixes to make the latest shellcheck pass --- lib/util/config.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/util/config.bash') 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 }') -- cgit v1.1