Use current working dir as WorkingDir instead of hugo executable's dir

This commit is contained in:
Tatsushi Demachi authored and spf13 committed 2014-12-12 11:33:52 -05:00
1 parent ec4b6c03a8
commit 7436829b82
1 file changed
+1 -1
+1 -1
View File
@@ -190,7 +190,7 @@ func InitializeConfig() {
if Source != "" {
viper.Set("WorkingDir", Source)
} else {
dir, _ := helpers.FindCWD()
dir, _ := os.Getwd()
viper.Set("WorkingDir", dir)
}