Messages in this thread Patch in this message | | | From | Łukasz Stelmach <> | Subject | [PATCH 1/2] get_maintainer: look for configuration files in ./scripts | Date | Tue, 16 Nov 2021 22:34:01 +0100 |
| |
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@samsung.com> --- 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
| |