Created
January 15, 2016 09:53
-
-
Save marcsolanadal/41b0be1ccdff0c24bd35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grepCommand.on('close', function (code) { | |
if (code === 0) { | |
var dateFinish = result.replace(/([^]*)(hasta: )([^\n]*)(\n)([^]*)/gm, "$3"); | |
console.log("DATE: " + dateFinish); | |
console.log("keystore is valid"); | |
deferred.resolve(); | |
} else { | |
console.error("Error validating keystore"); | |
deferred.reject("Error validating keystore"); | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment