mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
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.
This commit is contained in:
parent
013a49a941
commit
a3a02ef944
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
@echo off
|
||||
setlocal
|
||||
set rebarscript=%0
|
||||
escript.exe %rebarscript:.bat=% %*
|
||||
set rebarscript=%~f0
|
||||
escript.exe "%rebarscript:.bat=%" %*
|
||||
|
|
Loading…
Reference in a new issue