Fixed handling of directories with spaces on Windows

pull/381/head
TheArtist 9 years ago
parent 113a84f9f0
commit d3dd3f34e6

@ -1,2 +1,2 @@
@echo off @echo off
python %~dp0\autojump %* python "%~dp0\autojump" %*

@ -17,5 +17,5 @@ if ERRORLEVEL 1 (
echo try `autojump --help` for more information echo try `autojump --help` for more information
) )
) else ( ) else (
python %~dp0\autojump %* python "%~dp0\autojump" %*
) )

@ -2,7 +2,7 @@
echo %*|>nul findstr /rx \-.* echo %*|>nul findstr /rx \-.*
if ERRORLEVEL 1 ( if ERRORLEVEL 1 (
%~dp0\j.bat %cd% %* "%~dp0\j.bat" "%cd%" %*
) else ( ) else (
python %~dp0\autojump %* python "%~dp0\autojump" %*
) )

@ -2,7 +2,7 @@
echo %*|>nul findstr /rx \-.* echo %*|>nul findstr /rx \-.*
if ERRORLEVEL 1 ( if ERRORLEVEL 1 (
%~dp0\jc.bat %cd% %* "%~dp0\jc.bat" "%cd%" %*
) else ( ) else (
python %~dp0\autojump %* python "%~dp0\autojump" %*
) )

@ -11,5 +11,5 @@ if ERRORLEVEL 1 (
echo try `autojump --help` for more information echo try `autojump --help` for more information
) )
) else ( ) else (
python %~dp0\autojump %* python "%~dp0\autojump" %*
) )
Loading…
Cancel
Save