From 6e088034341380ecdd705ff7eda1c1c9db7a305c Mon Sep 17 00:00:00 2001 From: Christian Brandt <35726766+replikation@users.noreply.github.com> Date: Sat, 16 Jan 2021 18:11:46 +0100 Subject: [PATCH] quick fix to a false version check --- phage.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phage.nf b/phage.nf index c40f462..e98d00c 100755 --- a/phage.nf +++ b/phage.nf @@ -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 }