History

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]$

Tiezhu Yang committed 6 years ago

Commit d98dbbe1 parent e8f4ba81 file · +1 −1Browse files

Unified · Split

scripts/documentation-file-ref-check+1−1
@@ -25,7 +25,7 @@ my $fix = 0; · 24 unmodified lines
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