mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
Use current working dir as WorkingDir instead of hugo executable's dir
This commit is contained in:
1 parent
ec4b6c03a8
commit
7436829b82
1 file changed
+1
-1
+1
-1
@@ -190,7 +190,7 @@ func InitializeConfig() {
|
||||
if Source != "" {
|
||||
viper.Set("WorkingDir", Source)
|
||||
} else {
|
||||
dir, _ := helpers.FindCWD()
|
||||
dir, _ := os.Getwd()
|
||||
viper.Set("WorkingDir", dir)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user