Skip to content

Commit

Permalink
fixup ENV_DIR -> SMI_ENV_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Sep 20, 2024
1 parent 07a5943 commit c5b65c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/bin/templates/bin/CTP_SRAnonTool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ virtenv=""
debug=0
verbose=0

if [ "$ENV_DIR" == "" ]; then
echo "${prog}: ERROR: env var ENV_DIR must be set" >&2
if [ "$SMI_ENV_DIR" == "" ]; then
echo "${prog}: ERROR: env var SMI_ENV_DIR must be set" >&2
exit 1
fi

PYTHON="${ENV_DIR}/venvs/semehr/bin/python"
PYTHON="${SMI_ENV_DIR}/venvs/semehr/bin/python"
if [ ! -f "${PYTHON}" ]; then
echo "${prog}: ERROR: Expected to find python at ${PYTHON}" >&2
exit 1
Expand Down

0 comments on commit c5b65c7

Please sign in to comment.