Update install.sh

This commit is contained in:
SpudGunMan
2024-12-12 12:11:09 -08:00
parent 0e2f6343a2
commit dcad12935f
+4 -5
View File
@@ -14,8 +14,8 @@ printf "\nChecking for dependencies...\n"
# Check and install dependencies
if ! command -v python3 &> /dev/null
then
printf "python3 not found, trying 'apt-get install python3 python3-venv python3-pip'\n"
sudo apt-get install python3 python3-venv python3-pip
printf "python3 not found, trying 'apt-get install python3 python3-pip'\n"
sudo apt-get install python3 python3-pip
fi
if ! command -v pip &> /dev/null
then
@@ -66,12 +66,11 @@ if [ $venv == "y" ]; then
exit 1
else
echo "The Following could be messy, Creating virtual environment..."
python3 -m venv venv
source venv/bin/activate
#check if python3 has venv module
if [ -f venv/bin/activate ]; then
printf "\nFound virtual environment for python\n"
python3 -m venv venv
source venv/bin/activate
else
printf "\nVirtual environment not found, trying `sudo apt-get install python3-venv`\n"
sudo apt-get install python3-venv