From 680360ef2cf8d8c4f212bf1aa45d134e143fa61a Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 25 Jan 2025 08:19:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Windows=20=E4=B8=8B=20Bash?= =?UTF-8?q?=20=E8=84=9A=E6=9C=AC=E6=89=A7=E8=A1=8C=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/preload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/preload.js b/plugin/preload.js index 775ddc1..f8b63c5 100644 --- a/plugin/preload.js +++ b/plugin/preload.js @@ -230,7 +230,7 @@ const buildCommandLine = (bin, argv, script, scptarg) => { if (utools.isWindows() && bin === "bash") { const wslPath = script.replace(/\\/g, "/").replace(/C:/i, "/mnt/c"); - return `${bin} ${argv} "${wslPath}" ${scptarg}`; + return `wsl -e ${bin} ${argv} "${wslPath}" ${scptarg}`; } return `${bin} ${argv} "${script}" ${scptarg}`;