From 49d7a79941513ee170c1ff59a3c8e3acdb56d9d0 Mon Sep 17 00:00:00 2001 From: mintty Date: Fri, 22 Nov 2024 00:00:00 +0100 Subject: [PATCH] support portable installation into folder with space (#359) --- install.bat | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install.bat b/install.bat index c9f2b09..f6f2a37 100755 --- a/install.bat +++ b/install.bat @@ -12,8 +12,13 @@ call dequote oldroot call dequote oldhomedir set oldconfigdir="%oldhomedir%\.config\mintty" call dequote oldconfigdir -if not "%1" == "" set refinstalldir=%1 && set installdir=%1 -if not "%2" == "" set refconfigdir=%2 && set configdir=%2 +rem override installdir, configdir if parameters given +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