From 9ae697ac2051c1573956f7fe99a6a7e8d02d07e0 Mon Sep 17 00:00:00 2001 From: Thomas Wolff Date: Thu, 5 Mar 2020 00:00:00 +0100 Subject: [PATCH] fix `cd /D "%installdir%"` for drive changing (#223) --- install.bat | 2 +- uninstall.bat | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install.bat b/install.bat index e9aa018..7b75c0c 100755 --- a/install.bat +++ b/install.bat @@ -131,7 +131,7 @@ rem create config file if it does not yet exist if not exist "%configdir%\config" echo # To use common configuration in %%APPDATA%%\mintty, simply remove this file>"%configdir%\config" rem distro-specific stuff: shortcuts and launch scripts -cd "%installdir%" +cd /D "%installdir%" bin\dash.exe "%installdir%\config-distros.sh" rem bin\dash.exe "%installdir%\config-distros.sh" -contextmenu diff --git a/uninstall.bat b/uninstall.bat index c40d671..4e7932c 100755 --- a/uninstall.bat +++ b/uninstall.bat @@ -12,19 +12,19 @@ rmdir /S /Q "%smf%" :start menu -cd %installdir% +cd /D "%installdir%" bin\dash.exe config-distros.sh -shortcuts-remove :explorer context menu -cd %installdir% +cd /D "%installdir%" bin\dash.exe config-distros.sh -contextmenu-remove :undeploy -cd %installdir% +cd /D "%installdir%" rem currently not removing software