From cc53bd422c10d09e9dfee6b28b356ccac822cbc5 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 10 Jul 2024 19:16:41 -0700 Subject: [PATCH] Update launch.sh --- launch.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/launch.sh b/launch.sh index 4aeba6d..cb3bc11 100755 --- a/launch.sh +++ b/launch.sh @@ -3,29 +3,20 @@ # launch.sh cd "$(dirname "$0")" -printf "\n\nLaunches the bot in a virtual environment" - # activate the virtual environment if it exists if [ -d "venv" ]; then source venv/bin/activate fi -if [ ! -d "venv" ]; then - echo "No virtual environment found. Please run install.sh to set one up" - exit 1 -fi - if [ ! -f "config.ini" ]; then cp config.template config.ini fi # launch the application - - if [ "$1" == "pong" ]; then python pong_bot.py elif [ "$1" == "mesh" ]; then python mesh_bot.py else - echo "Please provide a bot to launch (pong/mesh)" + printf "\nPlease provide a bot to launch (pong/mesh)" fi