Skip to content

Commit

Permalink
Changed: installation check of pyenv added.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersulyok committed Mar 11, 2024
1 parent f64eeab commit 34782e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/create_python_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]];
Expand Down

0 comments on commit 34782e7

Please sign in to comment.