diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml index e8d367a9..576a6beb 100644 --- a/.forgejo/workflows/botserver.yaml +++ b/.forgejo/workflows/botserver.yaml @@ -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