Added small fix for CA cert path

This commit is contained in:
David Allen 2024-06-26 14:02:13 -06:00
parent f3adc49c26
commit 53f80fdd59
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -50,6 +50,12 @@ var generateCmd = &cobra.Command{
}
}
// use cert path from cobra if empty
// TODO: this needs to be checked for the correct desired behavior
if config.CertPath == "" {
config.CertPath = certPath
}
// use config plugins if none supplied via CLI
if len(pluginPaths) <= 0 {
pluginPaths = append(pluginPaths, config.PluginDirs...)