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
25my $warn = 0;25my $warn = 0;
26 26
27if (! -d ".git") {27if (! -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";
29 exit 0;29 exit 0;
30}30}
31 31