author: Rob Herring <robh@kernel.org> 2021-06-02 20:28:06 -0500
committer: Jonathan Corbet <corbet@lwn.net> 2021-06-04 11:20:52 -0600
commit: 709dedfdf3daa8719240ecff1c0b70b278005386
parent: c003555a026f56dae1d6b522045a7917150ceabb
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check
index c71832b2312b..7187ea5e5149 100755
--- a/scripts/documentation-file-ref-check
+++ b/scripts/documentation-file-ref-check
@@ -24,7 +24,7 @@ my $help = 0;
my $fix = 0;
my $warn = 0;
-if (! -d ".git") {
+if (! -e ".git") {
printf "Warning: can't check if file exists, as this is not a git tree\n";
exit 0;
}