mirror of
https://github.com/mintty/wsltty.git
synced 2025-01-18 12:05:47 +00:00
fix handling of empty/non-empty folder parameters
This commit is contained in:
parent
a7b8792e76
commit
05a439b5b0
14
install.bat
14
install.bat
@ -12,14 +12,20 @@ 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
|
||||||
|
|
||||||
rem override installdir, configdir if parameters given
|
rem override installdir, configdir if parameters given
|
||||||
set arg1=%1
|
set arg1=%1
|
||||||
set arg2=%2
|
echo %arg1%
|
||||||
call dequote arg1
|
call dequote arg1
|
||||||
|
echo %arg1%
|
||||||
|
if "%arg1%" == "%%arg1%%" goto deploy
|
||||||
|
set refinstalldir=%arg1%
|
||||||
|
set installdir=%arg1%
|
||||||
|
set arg2=%2
|
||||||
call dequote arg2
|
call dequote arg2
|
||||||
if not "%arg1%" == "" set refinstalldir=%arg1% && set installdir=%arg1%
|
if "%arg2%" == "%%arg2%%" goto deploy
|
||||||
if not "%arg2%" == "" set refconfigdir=%arg2% && set configdir=%arg2%
|
set refconfigdir=%arg2%
|
||||||
|
set configdir=%arg2%
|
||||||
|
|
||||||
:deploy
|
:deploy
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user