@Override public boolean promptYesNo(String prompt) { // fix prompt for host key if (prompt.contains("authenticity of host") && prompt.endsWith("connecting?")) { prompt = prompt.substring(0, prompt.length() - 1); prompt += " (yes/no)?"; } String answer = Contexts.prompt(prompt + " "); return answer.equalsIgnoreCase("yes"); }
log.warn("Its possible you need to edit your conf files before it can start"); while (!options.safeUnattended()) { String answer = Contexts.prompt("Do you want to try and start your daemons now [yes/no]? "); if (answer.equalsIgnoreCase("yes")) { break;