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