Fix --days parameter for renewal

This commit is contained in:
xenolf 2015-12-21 21:10:13 +01:00
parent 365bbf3166
commit 0c8bd2962e
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## [Unreleased]
### Fixed:
- CLI: Fix logic using the --days parameter
## [0.1.1] - 2015-12-18
### Added:

View file

@ -197,7 +197,7 @@ func renew(c *cli.Context) {
logger().Printf("Could not get Certification expiration for domain %s", domain)
}
if int(expTime.Sub(time.Now()).Hours() / 24.0) <= c.Int("days") {
if int(expTime.Sub(time.Now()).Hours() / 24.0) > c.Int("days") {
return
}
}