Skip to content

Commit

Permalink
quick fix to a false version check
Browse files Browse the repository at this point in the history
  • Loading branch information
replikation authored Jan 16, 2021
1 parent 4d9ffa2 commit 6e08803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phage.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if ( nextflow.version.toString().tokenize('.')[0].toInteger() < XX.toInteger() )
println "\033[0;33mWtP 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() < YY.toInteger() ) {
else if ( nextflow.version.toString().tokenize('.')[1].toInteger() == XX.toInteger() && nextflow.version.toString().tokenize('.')[1].toInteger() < YY.toInteger() ) {
println "\033[0;33mWtP requires at least Nextflow version " + XX + "." + YY + "." + ZZ + " -- You are using version $nextflow.version\u001B[0m"
exit 1
}
Expand Down

0 comments on commit 6e08803

Please sign in to comment.