Skip to content

Commit 8827511

Browse files
authored
Update clone.sh
1 parent d77744b commit 8827511

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

.github/clone.sh

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,15 @@ echo "
2424
:.......::::......:::........::..:::::..::........::::.......::::::..:::::
2525
"
2626

27-
if [[ -n $HEROKU_API_KEY && -n $HEROKU_APP_NAME ]]; then
28-
herokuErr=$(python ./.github/herokugiturl.py)
29-
if [[ "$herokuErr" ]]; then
30-
echo "$herokuErr"
31-
else
32-
HEROKU_GIT_URL="https://api:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git"
33-
fi
34-
fi
3527

3628
FILE=/app/.git
3729

3830
if [ -d "$FILE" ] ; then
3931
echo "$FILE directory exists already."
4032
else
41-
if [[ "$HEROKU_GIT_URL" ]]; then
42-
git clone "$HEROKU_GIT_URL" cat_ubh || git clone https://github.com/sandy1709/catuserbot cat_ubc
43-
mv cat_ubh/.git . || mv cat_ubc/.git .
44-
rm -rf cat_ubh || rm -rf cat_ubc
45-
else
46-
git clone https://github.com/sandy1709/catuserbot cat_ub
47-
mv cat_ub/.git .
48-
rm -rf cat_ub
49-
fi
33+
git clone -b main https://github.com/sandy1709/catuserbot cat_ub
34+
mv cat_ub/.git .
35+
rm -rf cat_ub
5036
fi
5137

5238
python -m userbot

0 commit comments

Comments
 (0)