1
0
Fork 0
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:
Piotr Faba 2020-07-07 13:48:28 +02:00
parent 4181184f58
commit cb7a6f756a

View file

@ -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
}