Compare commits

..

4 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 7b924483e7 fix: cd to script's directory for absolute paths in run_normal 2026-05-23 12:54:12 +00:00
copilot-swe-agent[bot] b43bd61ac6 fix: ensure all required directories are created with recursive option on container rebuild
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2026-03-07 13:38:23 +00:00
copilot-swe-agent[bot] 692c9a8d9e Initial plan 2026-03-07 13:33:00 +00:00
whyour c39f4ef846 chore: 更新 multer,解决 cve 漏洞 2026-03-07 21:31:24 +08:00
4 changed files with 547 additions and 244 deletions
+1 -1
View File
@@ -118,7 +118,7 @@
"@types/js-yaml": "^4.0.5",
"@types/jsonwebtoken": "^8.5.8",
"@types/lodash": "^4.14.185",
"@types/multer": "^2.0.0",
"@types/multer": "^1.4.7",
"@types/node": "^17.0.21",
"@types/node-schedule": "^1.3.2",
"@types/nodemailer": "^6.4.4",
+542 -241
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -92,9 +92,11 @@ run_normal() {
cd $dir_scripts
local relative_path="${file_param%/*}"
if [[ ! -z ${relative_path} ]] && [[ ${file_param} =~ "/" ]]; then
if [[ ${file_param} != /* ]] && [[ ! -z ${relative_path} ]] && [[ ${file_param} =~ "/" ]]; then
cd ${relative_path}
file_param=${file_param/$relative_path\//}
elif [[ ${file_param} == /* ]] && [[ ! -z ${relative_path} ]]; then
cd ${relative_path}
fi
if [[ $isJsOrPythonFile == 'false' ]]; then
+1 -1
View File
@@ -42,7 +42,7 @@ def run():
os.environ["PYTHONPATH"] = prev_pythonpath
split_str = "__sitecustomize__"
file_name = os.path.abspath(sys.argv[0]).replace(f"{os.getenv('dir_scripts')}/", "")
file_name = sys.argv[0].replace(f"{os.getenv('dir_scripts')}/", "")
# 创建临时文件路径
temp_file = f"/tmp/env_{os.getpid()}.json"