mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Use current working dir as WorkingDir instead of hugo executable's dir
This commit is contained in:
@@ -190,7 +190,7 @@ func InitializeConfig() {
|
|||||||
if Source != "" {
|
if Source != "" {
|
||||||
viper.Set("WorkingDir", Source)
|
viper.Set("WorkingDir", Source)
|
||||||
} else {
|
} else {
|
||||||
dir, _ := helpers.FindCWD()
|
dir, _ := os.Getwd()
|
||||||
viper.Set("WorkingDir", dir)
|
viper.Set("WorkingDir", dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user