Commit 980ca6e5 authored by nanahira's avatar nanahira

exclude sound and .git in size

parent 775e71cd
...@@ -57,14 +57,7 @@ process_repo() { ...@@ -57,14 +57,7 @@ process_repo() {
return return
fi fi
# check oversize rm -rf "workspace/$repo_identifer/sound" || true
size=$(du -sm "workspace/$repo_identifer" | cut -f1)
echo "Checking size of $repo_identifer: $size MB"
if [[ $size > $SIZE_LIMIT_MB ]]; then
echo "Skipping $repo_identifer due to oversize: $size MB > $SIZE_LIMIT_MB MB"
echo "[ERROR] $repo_url Oversize: $size MB > $SIZE_LIMIT_MB MB" | tee dist/warnings.txt
return
fi
current_path="$(pwd)" current_path="$(pwd)"
...@@ -83,6 +76,8 @@ process_repo() { ...@@ -83,6 +76,8 @@ process_repo() {
return return
fi fi
rm -rf .git || true
echo "Checking for blacklist files in $repo_identifer" echo "Checking for blacklist files in $repo_identifer"
while read -r file; do while read -r file; do
...@@ -99,6 +94,15 @@ process_repo() { ...@@ -99,6 +94,15 @@ process_repo() {
cd "$current_path" cd "$current_path"
# check oversize
size=$(du -sm "workspace/$repo_identifer" | cut -f1)
echo "Checking size of $repo_identifer: $size MB"
if [[ $size > $SIZE_LIMIT_MB ]]; then
echo "Skipping $repo_identifer due to oversize: $size MB > $SIZE_LIMIT_MB MB"
echo "[ERROR] $repo_url Oversize: $size MB > $SIZE_LIMIT_MB MB" | tee dist/warnings.txt
return
fi
echo "Checking for OCG codes in $repo_identifer" echo "Checking for OCG codes in $repo_identifer"
while read -r code; do while read -r code; do
......
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