Don't delete original and overwrite file when bzipping.

This commit is contained in:
Andrey Smirnov
2013-12-25 00:11:52 +04:00
parent fc1f0dcbf7
commit c2e443456d
+1 -1
View File
@@ -28,6 +28,6 @@ func CompressFile(source *os.File) error {
return err
}
cmd := exec.Command("bzip2", source.Name())
cmd := exec.Command("bzip2", "-k", "-f", source.Name())
return cmd.Run()
}