From a3a02ef9449df0a1ea4e9d3bc6af4b56e35a029c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kl=C3=B6tzke?= Date: Fri, 10 Jun 2011 19:41:49 +0200 Subject: [PATCH] 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. --- rebar.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rebar.bat b/rebar.bat index 547da6b..5cb5681 100644 --- a/rebar.bat +++ b/rebar.bat @@ -1,4 +1,4 @@ @echo off setlocal -set rebarscript=%0 -escript.exe %rebarscript:.bat=% %* +set rebarscript=%~f0 +escript.exe "%rebarscript:.bat=%" %*