removed initial call to dump() when watching file
This commit is contained in:
parent
28e4c55785
commit
61fef7f632
@ -16,15 +16,11 @@ import (
|
|||||||
|
|
||||||
// Dump Dumps "acme.json" file to certificates.
|
// Dump Dumps "acme.json" file to certificates.
|
||||||
func Dump(acmeFile string, baseConfig *dumper.BaseConfig) error {
|
func Dump(acmeFile string, baseConfig *dumper.BaseConfig) error {
|
||||||
err := dump(acmeFile, baseConfig)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
if baseConfig.Watch {
|
if baseConfig.Watch {
|
||||||
return watch(acmeFile, baseConfig)
|
return watch(acmeFile, baseConfig)
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
|
return dump(acmeFile, baseConfig)
|
||||||
}
|
}
|
||||||
|
|
||||||
func dump(acmeFile string, baseConfig *dumper.BaseConfig) error {
|
func dump(acmeFile string, baseConfig *dumper.BaseConfig) error {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user