Skip to content

Commit 5b2b107

Browse files
authored
Replace with internal check
1 parent c9d01d1 commit 5b2b107

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

main.nf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,13 @@ where_are_my_files = file("$baseDir/assets/where_are_my_files.txt")
235235
* SANITY CHECKING
236236
*/
237237

238+
// NF version check! Will replace with manifest system once allwoed by nf-core/tools
239+
240+
if( !nextflow.version.matches('>=19.10.0') ) {
241+
println "This workflow requires Nextflow version 19.10.0 or greater -- You are running version $nextflow.version"
242+
exit 1
243+
}
244+
238245
// Validate inputs
239246
if ( params.fasta.isEmpty () ){
240247
exit 1, "Please specify --fasta with the path to your reference"

0 commit comments

Comments
 (0)