Commit fee45f2a authored by nanahira's avatar nanahira

Update run.sh

parent 4dd353f6
Pipeline #35702 canceled with stages
in 2 minutes and 17 seconds
......@@ -56,7 +56,7 @@ process_repo() {
if [ ! -d "workspace/$repo_identifer" ]; then
echo "Failed to clone $repo_url"
echo "[ERROR] $repo_url Failed to clone" | tee dist/warnings.txt
return
return 0
fi
rm -rf "workspace/$repo_identifer/sound" || true
......@@ -81,7 +81,7 @@ process_repo() {
echo "Skipping $repo_identifer due to outdated: $((CURRENT_TIME - last_commit_timestamp)) > $((KEEP_PERIOD_DAYS * 24 * 60 * 60))"
cd "$current_path"
echo "[ERROR] $repo_url Outdated: $((CURRENT_TIME - last_commit_timestamp)) > $((KEEP_PERIOD_DAYS * 24 * 60 * 60))" | tee dist/warnings.txt
return
return 0
fi
rm -rf .git || true
......@@ -96,7 +96,7 @@ process_repo() {
echo "Skipping $repo_identifer due to blacklist file $file"
cd "$current_path"
echo "[ERROR] $repo_url Blacklist file: $file" | tee dist/warnings.txt
return
return 0
fi
done < <(find .)
......@@ -120,7 +120,7 @@ process_repo() {
if [ -n "${ocg_codes[$code]}" ]; then
echo "Skipping $repo_identifer due to using OCG code $code"
echo "[ERROR] $repo_url Using OCG code: $code" | tee dist/warnings.txt
return
return 0
fi
done < <(ls -1 workspace/$repo_identifer/*.cdb | xargs -I '{}' sqlite3 '{}' 'select id from datas;')
......@@ -156,7 +156,7 @@ process_repo() {
if [ $redtext_line_count -gt 0 ]; then
echo "Skipping $repo_identifer due to redtexts"
echo "[ERROR] $repo_url $redtext_line_count Redtexts found" | tee dist/warnings.txt
return
return 0
fi
rm dist/redtexts/$repo_identifer.txt
......
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