mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
commands: Simplify
This commit is contained in:
@@ -317,7 +317,7 @@ func InitializeConfig(subCmdVs ...*cobra.Command) error {
|
|||||||
}
|
}
|
||||||
isDir, err := helpers.DirExists(cacheDir, hugofs.Source())
|
isDir, err := helpers.DirExists(cacheDir, hugofs.Source())
|
||||||
utils.CheckErr(err)
|
utils.CheckErr(err)
|
||||||
if isDir == false {
|
if !isDir {
|
||||||
mkdir(cacheDir)
|
mkdir(cacheDir)
|
||||||
}
|
}
|
||||||
viper.Set("cacheDir", cacheDir)
|
viper.Set("cacheDir", cacheDir)
|
||||||
|
Reference in New Issue
Block a user