Commit d98dbbe0 authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Jonathan Corbet

scripts: documentation-file-ref-check: Add line break before exit

If execute ./scripts/documentation-file-ref-check in a directory which is
not a git tree, it will exit without a line break, fix it.

Without this patch:

[loongson@localhost linux-5.7-rc1]$ ./scripts/documentation-file-ref-check
Warning: can't check if file exists, as this is not a git tree[loongson@localhost linux-5.7-rc1]$

With this patch:

[loongson@localhost linux-5.7-rc1]$ ./scripts/documentation-file-ref-check
Warning: can't check if file exists, as this is not a git tree
[loongson@localhost linux-5.7-rc1]$
Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/1586857308-2040-1-git-send-email-yangtiezhu@loongson.cnSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent e8f4ba83
...@@ -25,7 +25,7 @@ my $fix = 0; ...@@ -25,7 +25,7 @@ my $fix = 0;
my $warn = 0; my $warn = 0;
if (! -d ".git") { if (! -d ".git") {
printf "Warning: can't check if file exists, as this is not a git tree"; printf "Warning: can't check if file exists, as this is not a git tree\n";
exit 0; exit 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment