mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-13 20:14:54 +00:00
commands: Simplify
This commit is contained in:
parent
65e5959bad
commit
4c72eb12dc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue