From 7a92e7c6abe998427f4bd6dcf321072fab4e2171 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 22 Jun 2025 21:47:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=96=E6=B6=88=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/dependence.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/back/services/dependence.ts b/back/services/dependence.ts index d93f56d1..178529b6 100644 --- a/back/services/dependence.ts +++ b/back/services/dependence.ts @@ -163,11 +163,9 @@ export default class DependenceService { taskLimit.removeQueuedDependency(doc); const depInstallCommand = getInstallCommand(doc.type, doc.name); const depUnInstallCommand = getUninstallCommand(doc.type, doc.name); - const installCmd = `${depInstallCommand} ${doc.name.trim()}`; - const unInstallCmd = `${depUnInstallCommand} ${doc.name.trim()}`; const pids = await Promise.all([ - getPid(installCmd), - getPid(unInstallCmd), + getPid(depInstallCommand), + getPid(depUnInstallCommand), ]); for (const pid of pids) { pid && (await killTask(pid));