core: 修复在 c 盘根目录下无法执行 reinstall.sh #25
This commit is contained in:
parent
6751cc5281
commit
e67575c2a7
@ -69,7 +69,8 @@ if not exist reinstall.sh (
|
|||||||
|
|
||||||
:: 运行 reinstall.sh
|
:: 运行 reinstall.sh
|
||||||
:: 方法1:
|
:: 方法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 %*"
|
%SystemDrive%\cygwin\bin\bash -l -c "%thisdir%reinstall.sh %*"
|
||||||
|
|
||||||
:: 方法2:
|
:: 方法2:
|
||||||
|
Loading…
Reference in New Issue
Block a user