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]$
Unified · Split
| @@ -25,7 +25,7 @@ my $fix = 0; · 24 unmodified lines | |||
| 25 | my $warn = 0; | 25 | my $warn = 0; |
| 26 | 26 | ||
| 27 | if (! -d ".git") { | 27 | 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"; |
| 29 | exit 0; | 29 | exit 0; |
| 30 | } | 30 | } |
| 31 | 31 | ||