From dd398ccacc1486ab4bf9d7673a4a856999b100d7 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 11 Oct 2024 11:21:49 -0700 Subject: [PATCH] Update launch.sh --- launch.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/launch.sh b/launch.sh index 60a218b..904df76 100755 --- a/launch.sh +++ b/launch.sh @@ -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