mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-12-03 12:19:56 +00:00
reduce complexity
This commit is contained in:
parent
4181184f58
commit
cb7a6f756a
1 changed files with 3 additions and 4 deletions
|
@ -4,12 +4,11 @@ params{
|
|||
config_profile_url = 'https://www.boehringer-ingelheim.com/'
|
||||
}
|
||||
|
||||
def configVar = System.getenv('NXF_GLOBAL_CONFIG')
|
||||
if(configVar == null)
|
||||
params.globalConfig = System.getenv('NXF_GLOBAL_CONFIG')
|
||||
if(params.globalConfig == null)
|
||||
{
|
||||
def errorMessage = "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."
|
||||
System.err.println(errorMessage)
|
||||
}else{
|
||||
params.globalConfig = configVar
|
||||
includeConfig configVar
|
||||
includeConfig params.globalConfig
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue