fix: call the hook at the first call. (#26)

This commit is contained in:
Ludovic Fernandez 2019-06-18 11:56:49 +02:00 committed by GitHub
parent 28e4c55785
commit 05afa6f5a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,8 @@ func Dump(acmeFile string, baseConfig *dumper.BaseConfig) error {
} }
if baseConfig.Watch { if baseConfig.Watch {
hook.Exec(baseConfig.Hook)
return watch(acmeFile, baseConfig) return watch(acmeFile, baseConfig)
} }
return nil return nil