Skip to content

Commit

Permalink
Fix null script name in launch info
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 Jun 19, 2022
1 parent 97334e0 commit 7118849
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ class CmdRun extends CmdBase implements HubOptions {
NextflowMeta.instance.enableDsl(dsl)
// -- show launch info
final ver = NF.dsl2 ? DSL2 : DSL1
final head = preview ? "* PREVIEW * $scriptFile.repository" : "Launching `$scriptFile.repository`"
final repo = scriptFile.repository ?: scriptFile.source
final head = preview ? "* PREVIEW * $scriptFile.repository" : "Launching `$repo`"
if( scriptFile.repository )
log.info "${head} [$runName] DSL${ver} - revision: ${scriptFile.revisionInfo}"
else
Expand Down

0 comments on commit 7118849

Please sign in to comment.