aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-03-06 16:04:21 +0300
committerFrederick Muriuki Muriithi2024-03-06 16:04:21 +0300
commitec480af2769fd17acac95dc4473ca4128a46279b (patch)
tree52cc20e155c6de3af2e9eea9ddfa36979156e23e /bin
parentb63b91cf52c148c6f7091e3845bb3fdb11052d62 (diff)
downloadgenenetwork2-ec480af2769fd17acac95dc4473ca4128a46279b.tar.gz
Check whether `GN2_SETTINGS` is provided before using default
Diffstat (limited to 'bin')
-rwxr-xr-xbin/genenetwork23
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