Spaces:
Running
Running
Update launch.sh
Browse files
launch.sh
CHANGED
@@ -67,19 +67,6 @@ function init() {
|
|
67 |
nohup ./git-batch --commit 10s --name git-batch --email [email protected] --push 1m -p history > access.log 2>1 &
|
68 |
}
|
69 |
|
70 |
-
function release() {
|
71 |
-
rm -rf history
|
72 |
-
}
|
73 |
-
|
74 |
-
function update() {
|
75 |
-
cd ${BASE}/history
|
76 |
-
git pull origin main
|
77 |
-
git add .
|
78 |
-
echo "'update history$(date "+%Y-%m-%d %H:%M:%S")'"
|
79 |
-
git commit -m "'update history$(date "+%Y-%m-%d %H:%M:%S")'"
|
80 |
-
git push origin main
|
81 |
-
}
|
82 |
-
|
83 |
case $1 in
|
84 |
env)
|
85 |
env
|
@@ -87,10 +74,4 @@ case $1 in
|
|
87 |
init)
|
88 |
init
|
89 |
;;
|
90 |
-
release)
|
91 |
-
release
|
92 |
-
;;
|
93 |
-
update)
|
94 |
-
update
|
95 |
-
;;
|
96 |
esac
|
|
|
67 |
nohup ./git-batch --commit 10s --name git-batch --email [email protected] --push 1m -p history > access.log 2>1 &
|
68 |
}
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
case $1 in
|
71 |
env)
|
72 |
env
|
|
|
74 |
init)
|
75 |
init
|
76 |
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
esac
|