fix(diff): use arg '--strip-trailing-cr'

This commit is contained in:
umarcor 2019-09-05 12:20:25 +02:00
parent 442031e4ff
commit 58ecd47ee6

View file

@ -43,7 +43,7 @@ func compareFiles(pathA, pathB string) error {
// Don't execute diff if it can't be found. // Don't execute diff if it can't be found.
return nil return nil
} }
diffCmd := exec.Command(diffPath, "-u", pathA, pathB) diffCmd := exec.Command(diffPath, "-u", "--strip-trailing-cr", pathA, pathB)
diffCmd.Stdout = output diffCmd.Stdout = output
diffCmd.Stderr = output diffCmd.Stderr = output