1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-22 00:26:03 +00:00

Merge pull request #156 from piotr-faba-ardigen/add_bi_config

Add bi config
This commit is contained in:
Alexander Peltzer 2020-05-27 21:03:15 +02:00 committed by GitHub
commit 32ec230098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,9 @@ includeConfig params.globalConfig
def determine_global_config() { def determine_global_config() {
if( System.getenv('NXF_GLOBAL_CONFIG') == null) if( System.getenv('NXF_GLOBAL_CONFIG') == null)
{ {
throw new Exception("Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file") def errorMessage = "ERROR: Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file."
System.err.println(errorMessage)
throw new Exception(errorMessage)
} }
return System.getenv('NXF_GLOBAL_CONFIG') return System.getenv('NXF_GLOBAL_CONFIG')
} }