Commit 7cc8ce25 authored by nanahira's avatar nanahira

add blacklist file check

parent 933a013d
......@@ -14,6 +14,14 @@ CURRENT_TIME=$(date +%s)
declare -A used_codes
blacklist_files=(
"script/constants.lua"
"script/utility.lua"
"script/init.lua"
"script/specials.lua"
"script/procedure.lua"
)
something_changed=0
process_repo() {
repo_url="$1"
......@@ -58,6 +66,14 @@ process_repo() {
return
fi
# check for blacklist files
for file in "${blacklist_files[@]}"; do
if [ -e "workspace/$repo_identifer/$file" ]; then
echo "Skipping $repo_identifer due to blacklist file: $file"
return
fi
done
# 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment