Skip to content

Commit d98dbbe

Browse files
seehearfeelJonathan Corbet
authored andcommitted
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: Tiezhu Yang <[email protected]> Reviewed-by: Mauro Carvalho Chehab <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent e8f4ba8 commit d98dbbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/documentation-file-ref-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ my $fix = 0;
2525
my $warn = 0;
2626

2727
if (! -d ".git") {
28-
printf "Warning: can't check if file exists, as this is not a git tree";
28+
printf "Warning: can't check if file exists, as this is not a git tree\n";
2929
exit 0;
3030
}
3131

0 commit comments

Comments
 (0)