Skip to content

Commit 9c53873

Browse files
committed
Bugfix: show version when not running directly from git
1 parent 509f87b commit 9c53873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def usage_message() {
379379
}
380380

381381
def startup_message() {
382-
revision = grab_git_revision()
382+
revision = grab_git_revision() ?: 'v0.2'
383383

384384
log.info "======================"
385385
log.info "WGS-structvar pipeline"
@@ -408,7 +408,7 @@ def grab_git_revision() {
408408

409409
ref_file = file("${baseDir}/.git/$ref")
410410
if ( ! ref_file.exists() ) {
411-
return 'v0.2'
411+
return ''
412412
}
413413
revision = ref_file.newReader().readLine()
414414

0 commit comments

Comments
 (0)