diff --git a/conf/bi.config b/conf/bi.config index 65059e3..1a218f1 100644 --- a/conf/bi.config +++ b/conf/bi.config @@ -4,17 +4,11 @@ params{ config_profile_url = 'https://www.boehringer-ingelheim.com/' } -params.globalConfig = set_global_config() - - -def set_global_config() { - def config = System.getenv('NXF_GLOBAL_CONFIG') - if(config == 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{ - includeConfig config - } - return config +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{ + includeConfig params.globalConfig }