Skip to content

Instantly share code, notes, and snippets.

@marcsolanadal
Created January 15, 2016 09:53
Show Gist options
  • Save marcsolanadal/41b0be1ccdff0c24bd35 to your computer and use it in GitHub Desktop.
Save marcsolanadal/41b0be1ccdff0c24bd35 to your computer and use it in GitHub Desktop.
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