[PATCH 1/2] get_maintainer: look for configuration files in ./scripts

From: Łukasz Stelmach
Date: Tue Nov 16 2021 - 16:34:21 EST


Change ".scripts" to "./scripts" as described in commit bcde44ed7d2a
("scripts/get_maintainer.pl: use .get_maintainer.conf from . then $HOME
then scripts").

Enumerate paths to search directly in an array instead of joining and
splitting.

Fixes: bcde44ed7d2a ("scripts/get_maintainer.pl: use .get_maintainer.conf from . then $HOME then scripts").
Signed-off-by: Łukasz Stelmach <l.stelmach@xxxxxxxxxxx>
---
scripts/get_maintainer.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index 2075db0c08b8..ff10c2878522 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -1478,7 +1478,7 @@ sub which {
sub which_conf {
my ($conf) = @_;

- foreach my $path (split(/:/, ".:$ENV{HOME}:.scripts")) {
+ foreach my $path (".", "$ENV{HOME}", "./scripts") {
if (-e "$path/$conf") {
return "$path/$conf";
}
--
2.30.2