Merge "Split filepaths on ' ' in metadata generator" into main
This commit is contained in:
commit
c35ca4de22
3 changed files with 3 additions and 5 deletions
|
@ -153,7 +153,7 @@ func main() {
|
|||
}
|
||||
|
||||
inputFileData := strings.TrimRight(readFileToString(*inputFile), "\n")
|
||||
filePaths := strings.Split(inputFileData, "\n")
|
||||
filePaths := strings.Split(inputFileData, " ")
|
||||
if len(filePaths) == 1 && filePaths[0] == "" {
|
||||
writeNewlineToOutputFile(*outputFile)
|
||||
return
|
||||
|
|
3
tools/metadata/testdata/inputFiles.txt
vendored
3
tools/metadata/testdata/inputFiles.txt
vendored
|
@ -1,2 +1 @@
|
|||
file1.txt
|
||||
file2.txt
|
||||
file1.txt file2.txt
|
|
@ -1,2 +1 @@
|
|||
file3.txt
|
||||
file4.txt
|
||||
file3.txt file4.txt
|
Loading…
Reference in a new issue