diff --git a/cmd/zipsync/zipsync.go b/cmd/zipsync/zipsync.go index 035a1455f..ed8a06f5a 100644 --- a/cmd/zipsync/zipsync.go +++ b/cmd/zipsync/zipsync.go @@ -118,7 +118,10 @@ func main() { } if *outputFile != "" { - data := strings.Join(files, "\n") + "\n" + data := strings.Join(files, "\n") + if len(files) > 0 { + data += "\n" + } must(ioutil.WriteFile(*outputFile, []byte(data), 0666)) } }