Fix git clone handling for existing directories
All checks were successful
BotServer CI/CD / build (push) Successful in 27m5s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-17 21:02:26 -03:00
parent c697b97943
commit fed92acaab

View file

@ -34,8 +34,9 @@ jobs:
cd botlib && git pull && cd ..
fi
if [ ! -d botserver ]; then
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/BotServer.git
if [ ! -d botserver/.git ]; then
rm -rf botserver
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/BotServer.git botserver
else
cd botserver && git pull && cd ..
fi