1
0
mirror of https://github.com/mintty/wsltty.git synced 2025-01-18 12:05:47 +00:00

support portable installation into folder with space (#359)

This commit is contained in:
mintty 2024-11-22 00:00:00 +01:00
parent 6261ec43ec
commit 49d7a79941

View File

@ -12,8 +12,13 @@ call dequote oldroot
call dequote oldhomedir call dequote oldhomedir
set oldconfigdir="%oldhomedir%\.config\mintty" set oldconfigdir="%oldhomedir%\.config\mintty"
call dequote oldconfigdir call dequote oldconfigdir
if not "%1" == "" set refinstalldir=%1 && set installdir=%1 rem override installdir, configdir if parameters given
if not "%2" == "" set refconfigdir=%2 && set configdir=%2 set arg1=%1
set arg2=%2
call dequote arg1
call dequote arg2
if not "%arg1%" == "" set refinstalldir=%arg1% && set installdir=%arg1%
if not "%arg2%" == "" set refconfigdir=%arg2% && set configdir=%arg2%
:deploy :deploy