SBU-BMI / tumor-til-survival-analysis

Scripts to run analysis of tumor/TILs.
Apache License 2.0
2 stars 0 forks source link

version of pipeline not shown when running from other directory #20

Open kaczmarj opened 1 year ago

kaczmarj commented 1 year ago

fix this in run-v1.sh with

 # Get the version as a short git commit (or unknown).
+SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
-version=$(git describe --always 2> /dev/null || echo unknown)
+version=$(git -C $SCRIPT_DIR describe --always 2> /dev/null || echo unknown)