core: 修复在 c 盘根目录下无法执行 reinstall.sh #25

This commit is contained in:
bin456789 2023-11-02 20:56:55 +08:00
parent 6751cc5281
commit e67575c2a7
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -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: