From 1d8403c0ec407599f5f7d34b143ff62301a5aee1 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 22 Jun 2025 21:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E8=BF=87=E5=A4=A7=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/preload/sitecustomize.js | 6 ++---- shell/preload/sitecustomize.py | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/shell/preload/sitecustomize.js b/shell/preload/sitecustomize.js index 8b89fc78..dbb9198f 100644 --- a/shell/preload/sitecustomize.js +++ b/shell/preload/sitecustomize.js @@ -87,12 +87,10 @@ function run() { console.log('执行前置命令结束\n'); } } catch (error) { - if (!error.message.includes('spawnSync /bin/sh E2BIG')) { + if (!error.message.includes('spawnSync /bin/bash E2BIG')) { console.log(`\ue926 run task before error: `, error); } else { - console.log( - `\ue926 The environment variable is too large. It is recommended to use task_before.js instead of task_before.sh\n`, - ); + // environment variable is too large } if (task_before) { console.log('执行前置命令结束\n'); diff --git a/shell/preload/sitecustomize.py b/shell/preload/sitecustomize.py index ae67263b..f4c51dd6 100644 --- a/shell/preload/sitecustomize.py +++ b/shell/preload/sitecustomize.py @@ -98,10 +98,8 @@ def run(): error_message = str(error) if "Argument list too long" not in error_message: print(f"\ue926 run task before error: {error}") - else: - print( - "\ue926 The environment variable is too large. It is recommended to use task_before.py instead of task_before.sh\n" - ) + # else: + # environment variable is too large if task_before: print("执行前置命令结束\n") except Exception as error: