Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Dec 12, 2024
1 parent 37924db commit 4b31d1b
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,10 @@ class ScriptRunner {

protected void parseScript( ScriptFile scriptFile, String entryName ) {
scriptParser = new ScriptParser(session)
scriptParser.setEntryName(entryName)
// don't execute entry workflow in the inspect command
if( ContainerInspectMode.active() )
scriptParser.setModule(true)
scriptParser.parse(scriptFile.main)
.setEntryName(entryName)
// setting module true when running in "inspect" mode to prevent the running the entry workflow
.setModule(ContainerInspectMode.active())
.parse(scriptFile.main)
session.script = scriptParser.script
}

Expand Down

0 comments on commit 4b31d1b

Please sign in to comment.