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
f664b92b
Commit
f664b92b
authored
Mar 16, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
80664593
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
run.sh
run.sh
+8
-2
No files found.
run.sh
View file @
f664b92b
...
...
@@ -12,6 +12,7 @@ echo '# Auto generated by ygopro-custom-free' > dist/strings.conf
CURRENT_TIME
=
$(
date
+%s
)
something_changed
=
0
process_repo
()
{
repo_url
=
"
$1
"
...
...
@@ -58,9 +59,10 @@ process_repo() {
# fetch previous hash
previous_hash
=
$(
curl
-sL
"https://cdn02.moecube.com:444/ygopro-custom-free/content/hashes/
$repo_identifer
.txt"
||
true
)
if
[[
$previous_hash
!=
$last_commit_hash
]]
;
then
something_changed
=
1
current_
something_changed
=
1
echo
"Detected changes in
$repo_identifer
:
$previous_hash
->
$last_commit_hash
"
else
current_something_changed
=
0
echo
"No changes detected in
$repo_identifer
:
$last_commit_hash
"
fi
...
...
@@ -96,6 +98,10 @@ process_repo() {
cp
-rf
workspace/
$repo_identifer
/script dist/
echo
"
$last_commit_hash
"
>
dist/hashes/
$repo_identifer
.txt
if
[[
$current_something_changed
==
1
]]
;
then
something_changed
=
1
fi
echo
"Finished processing
$repo_identifer
"
}
...
...
@@ -107,7 +113,7 @@ for file in repos/*.txt; do
done
<
"
$file
"
done
if
[
-z
$something_changed
]
;
then
if
[
[
$something_changed
==
0
]
]
;
then
echo
"No changes detected, skipping update"
exit
1
fi
...
...
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