try {
ScriptResult result = invoke(install);
status = result.toScriptStatus();
if (!status.ok){
updateCacheVersion();
dao.revertToLastVersion(updated);
}
} catch (ScriptEvalException e){
if (Logger.isDebugEnabled()) Logger.debug("Script installation failed: deleting");
updateCacheVersion();