Skip to content

Commit

Permalink
Handle '/' in j.bat
Browse files Browse the repository at this point in the history
Fixes xen0n#125
  • Loading branch information
bharatvaj authored and bharatvaj.ph committed Jun 8, 2022
1 parent e2be7d9 commit e7868d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/j.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ if ERRORLEVEL 1 (
for /f "delims=" %%i in ('"%~dp0\autojump" %*') do set new_path=%%i
if exist !new_path!\nul (
echo !new_path!
pushd !new_path!
pushd "!new_path!"
REM endlocal is necessary so that we can change directory for outside of this script
REM but will automatically popd. We mush pushd twice to work around this.
pushd !new_path!
pushd "!new_path!"
endlocal
popd
) else (
Expand Down

0 comments on commit e7868d9

Please sign in to comment.