From e67575c2a70397e4f6b3c252aa911f5cd6b8d295 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Thu, 2 Nov 2023 20:56:55 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=20c=20?= =?UTF-8?q?=E7=9B=98=E6=A0=B9=E7=9B=AE=E5=BD=95=E4=B8=8B=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=20reinstall.sh=20#25?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reinstall.bat b/reinstall.bat index 15557d1..9b45146 100644 --- a/reinstall.bat +++ b/reinstall.bat @@ -69,7 +69,8 @@ if not exist reinstall.sh ( :: 运行 reinstall.sh :: 方法1: -for /f %%a in ('%SystemDrive%\cygwin\bin\cygpath -ua .') do set thisdir=%%a +:: 在c盘根目录下执行 cygpath -ua . 会得到 /cygdrive/c,因此末尾要有 / +for /f %%a in ('%SystemDrive%\cygwin\bin\cygpath -ua ./') do set thisdir=%%a %SystemDrive%\cygwin\bin\bash -l -c "%thisdir%reinstall.sh %*" :: 方法2: