mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-25 09:19:56 +00:00
fix error introduced earlier
This commit is contained in:
parent
cb26bef3f3
commit
4828e78708
1 changed files with 8 additions and 13 deletions
|
@ -4,17 +4,12 @@ params{
|
||||||
config_profile_url = 'https://www.boehringer-ingelheim.com/'
|
config_profile_url = 'https://www.boehringer-ingelheim.com/'
|
||||||
}
|
}
|
||||||
|
|
||||||
params.globalConfig = set_global_config()
|
def configVar = System.getenv('NXF_GLOBAL_CONFIG')
|
||||||
|
if(configVar == null)
|
||||||
|
{
|
||||||
def set_global_config() {
|
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 config = System.getenv('NXF_GLOBAL_CONFIG')
|
System.err.println(errorMessage)
|
||||||
if(config == null)
|
}else{
|
||||||
{
|
params.globalConfig = configVar
|
||||||
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."
|
includeConfig configVar
|
||||||
System.err.println(errorMessage)
|
|
||||||
}else{
|
|
||||||
includeConfig config
|
|
||||||
}
|
|
||||||
return config
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue