mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-12-04 12:39:55 +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/'
|
config_profile_url = 'https://www.boehringer-ingelheim.com/'
|
||||||
}
|
}
|
||||||
|
|
||||||
def configVar = System.getenv('NXF_GLOBAL_CONFIG')
|
params.globalConfig = System.getenv('NXF_GLOBAL_CONFIG')
|
||||||
if(configVar == null)
|
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."
|
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)
|
System.err.println(errorMessage)
|
||||||
}else{
|
}else{
|
||||||
params.globalConfig = configVar
|
includeConfig params.globalConfig
|
||||||
includeConfig configVar
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue