From 6eb12d2677ab1374eb35e1e0d853fde2366a4cba Mon Sep 17 00:00:00 2001 From: David Tippett Date: Mon, 27 Jun 2022 13:47:28 +0000 Subject: [PATCH] Added a check to ensure the pyenv is activated. Signed-off-by: David Tippett --- index-data.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index-data.sh b/index-data.sh index 5da96960..ff8e5b4f 100755 --- a/index-data.sh +++ b/index-data.sh @@ -15,6 +15,14 @@ PYTHON_LOC="/workspace/search_with_machine_learning_course/utilities" LOGS_DIR="/workspace/logs" ANNOTATE="" + +if ["$VIRTUAL_ENV" == ""] +then + echo "Ensure your virtual environment is activated!" + echo " 'pyenv activate '" + exit 1 +fi + while getopts ':p:a:q:g:y:d:hrn' c do case $c in