Skip to content

Commit

Permalink
scripts: documentation-file-ref-check: Add line break before exit
Browse files Browse the repository at this point in the history
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: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/1586857308-2040-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
Tiezhu Yang authored and Jonathan Corbet committed Apr 15, 2020
1 parent e8f4ba8 commit d98dbbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/documentation-file-ref-check
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ my $fix = 0;
my $warn = 0;

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;
}

Expand Down

0 comments on commit d98dbbe

Please sign in to comment.