Skip to content

Commit

Permalink
Grails Console: Don't hook interceptors when execute commands
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed May 21, 2023
1 parent cd09441 commit 4c7c60f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ class GrailsShell extends Grails {

@Override
Object execute(String line) {
if (beforeExecution) {
if (!isExecutable(line) && beforeExecution) {
beforeExecution()
}

Object result = super.execute(line)

if (afterExecution) {
if (!isExecutable(line) && afterExecution) {
afterExecution()
}

Expand Down

0 comments on commit 4c7c60f

Please sign in to comment.