From 0fc2a3733414dddee4160cd5ebd4fcd60d8e2902 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 7 Dec 2022 19:14:24 -0500 Subject: [PATCH] Update pyenv2.sh --- misc/pyenv2.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc/pyenv2.sh b/misc/pyenv2.sh index aef5896c..0c744785 100644 --- a/misc/pyenv2.sh +++ b/misc/pyenv2.sh @@ -1,10 +1,15 @@ #!/usr/bin/env bash if command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Can't Install on Proxmox "; exit; fi set -e +DIR=/root/.pyenv/3.10.8 +if [ -d "$DIR" ]; then + echo "Python 3.10.8 is already installed, moving on..." +else echo "Installing Python 3.10.8" pyenv install 3.10.8 &>/dev/null pyenv global 3.10.8 echo "Installed Python 3.10.8" +fi read -r -p "Would you like to install Home Assistant Beta? " prompt if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then HA="Y"