Skip to content

Commit

Permalink
ninja: Answer for deletion prompt is case-insensitive now.
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Dec 10, 2021
1 parent 9162105 commit 8cfb148
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ private State askForState(PrismObject object) throws IOException {

strState = strState.toLowerCase();

if ("y".equals(strState) || "yes".equals(strState)) {
if ("y".equalsIgnoreCase(strState) || "yes".equalsIgnoreCase(strState)) {
state = State.DELETE;
}

if ("n".equals(strState) || "no".equals(strState)) {
if ("n".equalsIgnoreCase(strState) || "no".equalsIgnoreCase(strState)) {
state = State.SKIP;
}

if ("c".equals(strState) || "cancel".equals(strState)) {
if ("c".equalsIgnoreCase(strState) || "cancel".equalsIgnoreCase(strState)) {
state = State.STOP;
}
}
Expand Down

0 comments on commit 8cfb148

Please sign in to comment.