summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Klötzke <jan.kloetzke@freenet.de>2011-06-10 19:41:49 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-06-13 19:36:57 +0200
commita3a02ef9449df0a1ea4e9d3bc6af4b56e35a029c (patch)
tree1c91ce216cce9ae4cc3e1b8466cd8e2ba089de88
parent013a49a941907ed41c0626703734acfb55f92aba (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.bat4
1 files 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=%" %*