diff options
author | Frederick Muriuki Muriithi | 2023-07-05 11:12:30 +0300 |
---|---|---|
committer | zsloan | 2023-07-05 11:51:55 -0500 |
commit | e9640394e0e7c28d54cdd8c7a805c7dffa3f0be0 (patch) | |
tree | 985795a48aa3c3fb9d5144f7d50f6e97c6ed3aa1 /bin | |
parent | 93939248fdaaa89a9e3b74027addd8ea64d1a8e9 (diff) | |
download | genenetwork2-e9640394e0e7c28d54cdd8c7a805c7dffa3f0be0.tar.gz |
Compute the GN_VERSION in setup code not shell script
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/genenetwork2 | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2 index d0aa5d71..76afa781 100755 --- a/bin/genenetwork2 +++ b/bin/genenetwork2 @@ -64,16 +64,11 @@ GUIX_SITE=$GN2_BASE_DIR/lib/python3.8/site-packages if [ -d "${GUIX_SITE}" ]; then echo INFO: GN2 is running from GNU Guix GN2_BASE_DIR=$GUIX_SITE - GN_VERSION="${GN2_ID}:$(cat "${GN2_BASE_DIR}"/etc/VERSION)" - export GN_VERSION else echo INFO: GN2 is running from a source tree GIT_HASH=$(git rev-parse HEAD) GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) - GN_VERSION="${GN2_ID}:$(cat "${GN2_BASE_DIR}"/etc/VERSION)-${GIT_BRANCH}-$(echo "${GIT_HASH}" | cut -c1-9)" - export GN_VERSION fi -echo GN_VERSION="${GN_VERSION}" if [ "$1" = "-c" -o "$1" = "-gunicorn" ]; then echo "Can not use $1 switch without default settings file" |