Skip to content

Commit e9c8953

Browse files
authored
Merge pull request #1066 from nf-core/fix_strict_syntax_BI
FIX: Strict syntax for bi.config
2 parents 459d002 + 9c89b81 commit e9c8953

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

conf/bi.config

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ params {
77
config_profile_description = 'Boehringer Ingelheim internal profile provided by nf-core/configs.'
88
config_profile_contact = 'Alexander Peltzer (@apeltzer)'
99
config_profile_url = 'https://www.boehringer-ingelheim.com/'
10+
bi_globalConfig = System.getenv('NXF_GLOBAL_CONFIG') ?:
11+
System.err.println("WARNING: For bi.config requires NXF_GLOBAL_CONFIG env var to be set. Point it to global.config file if you want to use this profile.")
1012
}
1113

12-
params.bi_globalConfig = System.getenv('NXF_GLOBAL_CONFIG')
13-
if (params.bi_globalConfig == null) {
14-
System.err.println("WARNING: For bi.config requires NXF_GLOBAL_CONFIG env var to be set. Point it to global.config file if you want to use this profile.")
15-
} else {
16-
includeConfig params.bi_globalConfig
17-
}
14+
// Include the global config if set
15+
includeConfig(params.bi_globalConfig ?: '/dev/null')

0 commit comments

Comments
 (0)