Skip to content

Commit

Permalink
Fix rebar.bat path handling
Browse files Browse the repository at this point in the history
Use "%~f0" to get the full path of rebat.bat to correctly locate the
rebar script. Also put the script name in quotes when passing it to
escript.exe to correctly handle paths with spaces.
  • Loading branch information
jkloetzke authored and Tuncer Ayaz committed Jun 13, 2011
1 parent 013a49a commit a3a02ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rebar.bat
@@ -1,4 +1,4 @@
@echo off
setlocal
set rebarscript=%0
escript.exe %rebarscript:.bat=% %*
set rebarscript=%~f0
escript.exe "%rebarscript:.bat=%" %*

0 comments on commit a3a02ef

Please sign in to comment.