From 5aa47a7b07a8dee27b4e474d9b1b96ae858644f2 Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Tue, 20 Aug 2013 20:32:32 +0100 Subject: [PATCH] Static changes shouldn't be destructive to existing files Currently changing css deletes all the site published html when it copies. Refs #46 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 26cd1d7f7..8ff08f7fc 100644 --- a/main.go +++ b/main.go @@ -132,7 +132,7 @@ func main() { func copyStatic(config *hugolib.Config) error { // Copy Static to Destination - return fsync.SyncDel(config.GetAbsPath(config.PublishDir+"/"), config.GetAbsPath(config.StaticDir+"/")) + return fsync.Sync(config.GetAbsPath(config.PublishDir+"/"), config.GetAbsPath(config.StaticDir+"/")) } func serve(port string, config *hugolib.Config) {