Fix git clone handling for existing directories
All checks were successful
BotServer CI/CD / build (push) Successful in 27m5s
All checks were successful
BotServer CI/CD / build (push) Successful in 27m5s
This commit is contained in:
parent
c697b97943
commit
fed92acaab
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue