summaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorRoss Lawley <[email protected]>2013-08-20 20:32:32 +0100
committerRoss Lawley <[email protected]>2013-08-20 20:32:32 +0100
commit5aa47a7b07a8dee27b4e474d9b1b96ae858644f2 (patch)
tree502fd94cb126c59dc63f15d6dbbbe27ed670ce05 /main.go
parenteff8457ac91e337b81876271aca31bf4d61e09f1 (diff)
downloadhugo-5aa47a7b07a8dee27b4e474d9b1b96ae858644f2.tar.gz
hugo-5aa47a7b07a8dee27b4e474d9b1b96ae858644f2.zip
Static changes shouldn't be destructive to existing files
Currently changing css deletes all the site published html when it copies. Refs #46
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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) {