From 06393c9d3978f593c84435178bc8879f370b3acf Mon Sep 17 00:00:00 2001 From: yojoshb <68751897+yojoshb@users.noreply.github.com> Date: Mon, 15 Apr 2024 08:29:15 -0500 Subject: [PATCH] put back the test for existing files closes issue #2 --- run_bot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run_bot.sh b/run_bot.sh index 604bfbb..506da12 100644 --- a/run_bot.sh +++ b/run_bot.sh @@ -9,7 +9,9 @@ if [ $BOT_VERSION == "latest" ]; then fi echo -e "Downloading JMusicBot $BOT_VERSION" -wget https://github.com/jagrosh/MusicBot/releases/download/$BOT_VERSION/JMusicBot-$BOT_VERSION.jar +if [ ! -f JMusicBot-$BOT_VERSION.jar ]; then + wget https://github.com/jagrosh/MusicBot/releases/download/$BOT_VERSION/JMusicBot-$BOT_VERSION.jar +fi echo -e "Starting JMusicBot $BOT_VERSION" java -Dnogui=true -Dconfig=/config/config.txt -jar JMusicBot-$BOT_VERSION.jar