From ec480af2769fd17acac95dc4473ca4128a46279b Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 6 Mar 2024 16:04:21 +0300 Subject: [PATCH] Check whether `GN2_SETTINGS` is provided before using default --- bin/genenetwork2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/genenetwork2 b/bin/genenetwork2 index 010268110..da35d049c 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