mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-12 14:14:00 -04:00
commands: Simplify
This commit is contained in:
parent
65e5959bad
commit
4c72eb12dc
@ -317,7 +317,7 @@ func InitializeConfig(subCmdVs ...*cobra.Command) error {
|
||||
}
|
||||
isDir, err := helpers.DirExists(cacheDir, hugofs.Source())
|
||||
utils.CheckErr(err)
|
||||
if isDir == false {
|
||||
if !isDir {
|
||||
mkdir(cacheDir)
|
||||
}
|
||||
viper.Set("cacheDir", cacheDir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user