Commit 908adf70 authored by nanahira's avatar nanahira

Update run.sh

parent 2cf5a35f
Pipeline #35700 canceled with stages
in 6 minutes and 8 seconds
......@@ -139,10 +139,14 @@ process_repo() {
rm expansions || rmdir expansions || true
ln -sf "$current_path/workspace/$repo_identifer" expansions
ls -1 $current_path/workspace/$repo_identifer/*.cdb | xargs -I '{}' -d '\n' sqlite3 '{}' 'select id from datas where type != 0x11 and (type & 0x4000) = 0;' | xargs -I '{}' -d '\n' ./ygopro '{}' 2>&1 | tee "$current_path/dist/redtexts/$repo_identifer.txt"
ls -1 $current_path/workspace/$repo_identifer/*.cdb | xargs -I '{}' -d '\n' sqlite3 '{}' 'select id from datas where type != 0x11 and (type & 0x4000) = 0;' | xargs -I '{}' -P $(nproc) -d '\n' bash -c "./ygopro {} 2>&1 | tee $current_path/dist/redtexts/$repo_identifer-{}.txt"
cd "$current_path"
cat dist/redtexts/$repo_identifer-*.txt > dist/redtexts/$repo_identifer.txt
rm -f dist/redtexts/$repo_identifer-*.txt
redtext_line_count=$(wc -l dist/redtexts/$repo_identifer.txt | cut -d' ' -f1)
echo "Finished checking for redtexts in $repo_identifer, $redtext_line_count redtexts found"
......
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