echo"Skipping $repo_identifer due to outdated: $((CURRENT_TIME - last_commit_timestamp)) > $((KEEP_PERIOD_DAYS *24*60*60))"
return
fi
# check for blacklist files
ls-1 workspace/$repo_identifer/*.cdb | xargs -I'{}' sqlite3 '{}''select id from datas;' | while read-r code;do
for file in"${blacklist_files[@]}";do
if[-z"$code"];then
if[-e"workspace/$repo_identifer/$file"];then
continue
echo"Skipping $repo_identifer due to blacklist file: $file"
fi
if[-n"${ocg_codes[$code]}"];then
echo"Skipping $repo_identifer due to using OCG code $code"
return
return
fi
fi
done
done
...
@@ -84,16 +117,15 @@ process_repo() {
...
@@ -84,16 +117,15 @@ process_repo() {
echo"No changes detected in $repo_identifer: $last_commit_hash"
echo"No changes detected in $repo_identifer: $last_commit_hash"
fi
fi
echo"Searching codes in $repo_identifer"
ls-1 workspace/$repo_identifer/*.cdb | xargs -I'{}' sqlite3 '{}''select id from datas where type != 0x11 and (type & 0x4000) = 0;'>"workspace/$repo_identifer-codes.txt"