You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
echo"Error: Directory not found at path '$repo_path'.">&2
39
+
exit 1
40
+
fi
41
+
42
+
# Extract the response body (JSON content)
43
+
echo"$response"| head -n -1
37
44
}
38
45
39
46
rewrite_path() {
@@ -72,7 +79,7 @@ download_files() {
72
79
local local_path=$2
73
80
local mode=$3
74
81
local case_option=$4
75
-
local max_jobs=5 # Limit the number of parallel jobs
82
+
local max_jobs=5 # Limit the number of parallel jobs
76
83
local job_count=0
77
84
78
85
response=$(fetch_directory_contents "$repo_path")
@@ -96,6 +103,12 @@ download_files() {
96
103
continue
97
104
fi
98
105
106
+
# Skip specific files
107
+
if [[ "$name"=="package.json"||"$name"=="tsconfig.json"||"$name"=="tsconfig.lib.json"||"$name"=="tsconfig.test.json"||"$name"=="vitest.config.ts" ]];then
108
+
log_debug "Skipping file: $name"
109
+
continue
110
+
fi
111
+
99
112
if [ "$type"=="dir" ];then
100
113
if [[ "$name"=="__snapshots__" ]];then
101
114
continue
@@ -150,8 +163,8 @@ download_files() {
150
163
151
164
# Manage the job queue
152
165
((job_count++))
153
-
if((job_count >= max_jobs));then
154
-
wait -n # Wait for at least one job to finish before continuing
166
+
if((job_count >= max_jobs));then
167
+
wait -n # Wait for at least one job to finish before continuing
0 commit comments