Skip to content

Commit

Permalink
version warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MarieLataretu committed May 17, 2021
1 parent b4cafb5 commit 3c5c681
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
20 changes: 0 additions & 20 deletions clean.nf
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
#!/usr/bin/env nextflow

/*
Nextflow version check
Format is this: XX.YY.ZZ (e.g. 20.07.1)
change below
*/

XX = "21"
YY = "04"
ZZ = "0"

if ( nextflow.version.toString().tokenize('.')[0].toInteger() < XX.toInteger() ) {
println "\033[0;33mCLEAN requires at least Nextflow version " + XX + "." + YY + "." + ZZ + " -- You are using version $nextflow.version\u001B[0m"
exit 1
}
else if ( nextflow.version.toString().tokenize('.')[1].toInteger() == XX.toInteger() && nextflow.version.toString().tokenize('.')[1].toInteger() < YY.toInteger() ) {
println "\033[0;33mCLEAN requires at least Nextflow version " + XX + "." + YY + "." + ZZ + " -- You are using version $nextflow.version\u001B[0m"
exit 1
}


nextflow.enable.dsl=2

/*
Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
manifest {
mainScript = 'clean.nf'
nextflowVersion = '>=21.04.0'
}

// default parameters
Expand Down

0 comments on commit 3c5c681

Please sign in to comment.