Skip to content

Commit

Permalink
bug in confirmInput
Browse files Browse the repository at this point in the history
  • Loading branch information
wholegroup committed Jun 17, 2011
1 parent 2e9a13f commit f298d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/_GrailsSettings.groovy
Expand Up @@ -153,7 +153,7 @@ confirmInput = {String message, code="confirm.message" ->
grailsConsole.error("Cannot ask for input when --non-interactive flag is passed. You need to check the value of the 'isInteractive' variable before asking for input")
exit(1)
}
return grailsConsole.userInput(message, ["y","n"] as String[])
return 'y'.equalsIgnoreCase(grailsConsole.userInput(message, ["y","n"] as String[]))
}

// Note: the following only work if you also include _GrailsEvents.
Expand Down

0 comments on commit f298d94

Please sign in to comment.