Skip to content
This repository was archived by the owner on Aug 21, 2019. It is now read-only.

Commit 1be80c8

Browse files
committed
ensure that the script exist with 0 if all certificates are valid
1 parent 01b0f3e commit 1be80c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ module.exports = (options) => {
139139
pagesDomains.every(hasValidCertificate);
140140

141141
if (needsNoRenewal) {
142-
return Promise.reject(`All domains (${options.domain.join(', ')}) have a valid certificate (expiration in more than ${EXPIRATION_IN_DAYS} days)`);
142+
console.log(`All domains (${options.domain.join(', ')}) have a valid certificate (expiration in more than ${EXPIRATION_IN_DAYS} days)`);
143+
process.exit(0);
143144
}
144145

145146
// promises to create the new domains

0 commit comments

Comments
 (0)