Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-custom-free
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
REIKAI
ygopro-custom-free
Commits
7cf4c785
Commit
7cf4c785
authored
Mar 16, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
db0d2f14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
run.sh
run.sh
+8
-11
No files found.
run.sh
View file @
7cf4c785
...
...
@@ -23,10 +23,7 @@ blacklist_files["script/special.lua"]=1
blacklist_files[
"script/procedure.lua"
]=
1
loaded_count
=
0
sqlite3 cards.cdb
'select id from datas;'
|
while
read
-r
code
;
do
if
[
-z
"
$code
"
]
;
then
continue
fi
while
read
-r
code
;
do
ocg_codes[
$code
]=
1
blacklist_files[
"script/c
$code
.lua"
]=
1
blacklist_files[
"pics/
$code
.jpg"
]=
1
...
...
@@ -34,7 +31,7 @@ sqlite3 cards.cdb 'select id from datas;' | while read -r code; do
blacklist_files[
"pics/field/
$code
.jpg"
]=
1
blacklist_files[
"pics/field/
$code
.png"
]=
1
loaded_count
=
$((
loaded_count
+
1
))
done
done
< <
(
sqlite3 cards.cdb
'select id from datas;'
)
echo
"Loaded
$loaded_count
OCG codes"
something_changed
=
0
...
...
@@ -85,7 +82,7 @@ process_repo() {
echo
"Checking for blacklist files in
$repo_identifer
"
find
.
|
while
read
-r
file
;
do
while
read
-r
file
;
do
if
[
-z
"
$file
"
]
;
then
continue
fi
...
...
@@ -94,13 +91,13 @@ process_repo() {
cd
"
$current_path
"
return
fi
done
done
< <
(
find .
)
cd
"
$current_path
"
echo
"Checking for OCG codes in
$repo_identifer
"
ls
-1
workspace/
$repo_identifer
/
*
.cdb | xargs
-I
'{}'
sqlite3
'{}'
'select id from datas;'
|
while
read
-r
code
;
do
while
read
-r
code
;
do
if
[
-z
"
$code
"
]
;
then
continue
fi
...
...
@@ -108,7 +105,7 @@ process_repo() {
echo
"Skipping
$repo_identifer
due to using OCG code
$code
"
return
fi
done
done
< <
(
ls
-1
workspace/
$repo_identifer
/
*
.cdb | xargs
-I
'{}'
sqlite3
'{}'
'select id from datas;'
)
# fetch previous hash
previous_hash
=
$(
curl
-sL
"https://cdn02.moecube.com:444/ygopro-custom-free/content/hashes/
$repo_identifer
.txt"
||
true
)
...
...
@@ -144,7 +141,7 @@ process_repo() {
echo
"Checking for used codes in
$repo_identifer
"
# add the codes to the used_codes array
ls
-1
workspace/
$repo_identifer
/
*
.cdb | xargs
-I
'{}'
sqlite3
'{}'
'select id from datas;'
|
while
read
-r
code
;
do
while
read
-r
code
;
do
if
[
-z
"
$code
"
]
;
then
continue
fi
...
...
@@ -154,7 +151,7 @@ process_repo() {
else
used_codes[
$code
]=
"
$repo_url
"
fi
done
done
< <
(
ls
-1
workspace/
$repo_identifer
/
*
.cdb | xargs
-I
'{}'
sqlite3
'{}'
'select id from datas;'
)
echo
"Archiving
$repo_identifer
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment