-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathpyteledeploy.sh
More file actions
34 lines (27 loc) · 1005 Bytes
/
Copy pathpyteledeploy.sh
File metadata and controls
34 lines (27 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
if [ -z "$REPO_URL" ] || [ -z "$REPO_BRANCH" ]; then
echo "REPO_URL or REPO_BRANCH environment variable is not set. Exiting ..."
exit 1
fi
if [ -d ".git" ]; then
rm -rf .git
fi
git init -q
git config --global user.email drxxstrange@gmail.com
git config --global user.name SilentDemonSD
git remote add origin $REPO_URL
git fetch origin -q
git reset --hard origin/$REPO_BRANCH -q
uv pip install --system --no-cache-dir -q -r requirements.txt
if [ -z "$START_CMD" ]; then
echo "START_CMD not specified. Exiting Now ..."
exit 1
fi
echo "
░▀█▀▒██▀░█▒░▒██▀░▒░░█▒░░▄▀▄▒▄▀▄░█▀▄▒██▀▒█▀▄
░▒█▒░█▄▄▒█▄▄░█▄▄░▀▀▒█▄▄░▀▄▀░█▀█▒█▄▀░█▄▄░█▀▄
v2.0.0
Repo : https://github.com/SilentDemonSD/pyTele-Loader By SilentDemonSD
Repo URL : $REPO_URL
Repo Branch : $REPO_BRANCH"
eval "$START_CMD"