From c2e443456d02009be2f31ed2085c8d5da6c894f1 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Wed, 25 Dec 2013 00:11:52 +0400 Subject: [PATCH] Don't delete original and overwrite file when bzipping. --- utils/compress.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/compress.go b/utils/compress.go index 10e9d60d..1570e92c 100644 --- a/utils/compress.go +++ b/utils/compress.go @@ -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() }