diff options
author | Frederick Muriuki Muriithi | 2024-03-06 16:04:21 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-03-06 16:04:21 +0300 |
commit | ec480af2769fd17acac95dc4473ca4128a46279b (patch) | |
tree | 52cc20e155c6de3af2e9eea9ddfa36979156e23e | |
parent | b63b91cf52c148c6f7091e3845bb3fdb11052d62 (diff) | |
download | genenetwork2-ec480af2769fd17acac95dc4473ca4128a46279b.tar.gz |
Check whether `GN2_SETTINGS` is provided before using default
-rwxr-xr-x | bin/genenetwork2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2 index 01026811..da35d049 100755 --- a/bin/genenetwork2 +++ b/bin/genenetwork2 @@ -95,7 +95,8 @@ if [ ! -e "${settings}" ]; then exit 1 fi -export GN2_SETTINGS=$settings # Python +# If $GN2_SETTINGS is set, use that, otherwise use default provided at invocation +export GN2_SETTINGS=${GN2_SETTINGS:-$settings} echo GN2_SETTINGS="${settings}" if [ -z "${GN2_PROFILE}" ] ; then |