From f408f5948cf91105e423ccd88486837ab2b978a4 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 10 Jul 2024 15:54:36 -0700 Subject: [PATCH] Update launch.sh --- launch.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/launch.sh b/launch.sh index ee29bb4..9c82e5d 100755 --- a/launch.sh +++ b/launch.sh @@ -1,7 +1,9 @@ #!/bin/bash # launch.sh -echo "Launches the bot in a virtual environment" +cd "$(dirname "$0")" + +printf "\n\nLaunches the bot in a virtual environment" # activate the virtual environment if it exists if [ -d "venv" ]; then @@ -9,7 +11,7 @@ if [ -d "venv" ]; then fi # launch the application -cd "$(dirname "$0")" + if [ "$1" == "pong" ]; then python pong_bot.py