From 34782e72d1f82c534619a62d5faf7fd48bde24e1 Mon Sep 17 00:00:00 2001 From: petersulyok Date: Mon, 11 Mar 2024 19:41:30 +0100 Subject: [PATCH] Changed: installation check of pyenv added. --- bin/create_python_env.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/create_python_env.sh b/bin/create_python_env.sh index e776ed1..28644c0 100755 --- a/bin/create_python_env.sh +++ b/bin/create_python_env.sh @@ -11,6 +11,12 @@ then exit 1 fi +if [ "$PYENV_ROOT" = "" ]; +then + echo "Error: pyenv must be installed first." + exit 1 +fi + # Install the specified python version if it hasn't been already installed. python_version=$(pyenv version --bare|grep $1) if [[ "$python_version" = "" || "$?" = "1" ]];