From 3447e95a0da3d4e2b3948069033ce4be0e6e272e Mon Sep 17 00:00:00 2001 From: Benjamin Evans <51272212+dfgHiatus@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:28:34 -0500 Subject: [PATCH] Update babbleapp.sh --- babbleapp.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/babbleapp.sh b/babbleapp.sh index db40fd9..aabd5f9 100644 --- a/babbleapp.sh +++ b/babbleapp.sh @@ -63,9 +63,15 @@ update_repo() { cd $install_dir -update_repo -source venv/bin/activate cd BabbleApp + +# Create venv if it does not exists +if ! [ -d "venv" ]; then + python3 -m venv venv +fi + +source venv/bin/activate +update_repo echo "Verifying dependencies. This might take a second!" install_requirements echo "Starting Babble app..."