forked from Glaceon31/LLhelper
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathupdate.sh
executable file
·44 lines (37 loc) · 834 Bytes
/
update.sh
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
35
36
37
38
39
40
41
42
43
#!/bin/bash
set -e
do_download_livedb=
do_download_unitdb=
do_cleanup=
livedb=livenewjp.db_
unitdb=unitnewjp.db_
if [ "$1" = "local" ]; then
if [ ! -f "$livedb" ]; then
do_download_livedb=y
fi
if [ ! -f "$unitdb" ]; then
do_download_unitdb=y
fi
else
do_download_livedb=y
do_download_unitdb=y
do_cleanup=y
fi
if [ "$do_download_livedb" = "y" ]; then
wget -O $livedb https://r.llsif.win/db/live/live.db_
fi
if [ "$do_download_unitdb" = "y" ]; then
wget -O $unitdb https://r.llsif.win/db/unit/unit.db_
fi
python2 updatenewcard.py
python2 updatenewlive.py
# argument is thread number, 1 to use single-thread mode
#python2 updateweight2.py 1
python2 updateweight2.py 10
python2 updatemetadata.py
python2 updatesis.py
python2 updateaccessory.py
if [ "$do_cleanup" = "y" ]; then
rm $livedb
rm $unitdb
fi