diff options
author | Jan Klötzke <jan.kloetzke@freenet.de> | 2011-06-10 19:41:49 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-06-13 19:36:57 +0200 |
commit | a3a02ef9449df0a1ea4e9d3bc6af4b56e35a029c (patch) | |
tree | 1c91ce216cce9ae4cc3e1b8466cd8e2ba089de88 | |
parent | 013a49a941907ed41c0626703734acfb55f92aba (diff) |
Fix rebar.bat path handling
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.
-rw-r--r-- | rebar.bat | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ @echo off setlocal -set rebarscript=%0 -escript.exe %rebarscript:.bat=% %* +set rebarscript=%~f0 +escript.exe "%rebarscript:.bat=%" %* |