Update launch.sh

This commit is contained in:
SpudGunMan
2024-10-11 11:21:49 -07:00
parent 0d43243650
commit dd398ccacc
+5 -4
View File
@@ -3,6 +3,11 @@
# launch.sh
cd "$(dirname "$0")"
if [ ! -f "config.ini" ]; then
cp config.template config.ini
fi
# activate the virtual environment if it exists
if [ -d "venv" ]; then
source venv/bin/activate
@@ -11,10 +16,6 @@ else
exit 1
fi
if [ ! -f "config.ini" ]; then
cp config.template config.ini
fi
# launch the application
if [ "$1" == "pong" ]; then
python3 pong_bot.py