Skip to content

Commit

Permalink
fix for GRAILS-4570, now allows Y or y
Browse files Browse the repository at this point in the history
  • Loading branch information
burtbeckwith committed Feb 21, 2010
1 parent 7a58ded commit b1a28f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/_GrailsSettings.groovy
Expand Up @@ -306,9 +306,9 @@ confirmInput = {String message, code="confirm.message" ->
println("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)
}
ant.input(message: message, addproperty: code, validargs: "y,n")
ant.input(message: message, addproperty: code, validargs: "y,Y,n,N")
def result = ant.antProject.properties[code]
(result == 'y')
'y'.equalsIgnoreCase(result)
}

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

0 comments on commit b1a28f2

Please sign in to comment.