Skip to content

Commit 77bae50

Browse files
committed
Refine logic to check conda/mamba is being used in a profile
1 parent d17edfa commit 77bae50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WorkflowMain.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class WorkflowMain {
7171
NfcoreTemplate.checkConfigProvided(workflow, log)
7272

7373
// Check that conda channels are set-up correctly
74-
if (workflow.profile.contains('conda') || workflow.profile.contains('mamba')) {
74+
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
7575
Utils.checkCondaChannels(log)
7676
}
7777

0 commit comments

Comments
 (0)