Skip to content

Commit

Permalink
Disable execution of entry workflow in inspect
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
  • Loading branch information
bentsherman committed Dec 9, 2024
1 parent 6cdbe2d commit 53d6c61
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,11 @@ class ScriptRunner {

protected void parseScript( ScriptFile scriptFile, String entryName ) {
scriptParser = new ScriptParser(session)
.setEntryName(entryName)
.parse(scriptFile.main)
scriptParser.setEntryName(entryName)
// don't execute entry workflow if preview action (i.e. inspect command) is specified
if( previewAction )
scriptParser.setModule(true)
scriptParser.parse(scriptFile.main)
session.script = scriptParser.script
}

Expand Down

0 comments on commit 53d6c61

Please sign in to comment.