mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +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
|
@echo off
|
||||||
setlocal
|
setlocal
|
||||||
set rebarscript=%0
|
set rebarscript=%~f0
|
||||||
escript.exe %rebarscript:.bat=% %*
|
escript.exe "%rebarscript:.bat=%" %*
|
||||||
|
|
Loading…
Reference in a new issue