summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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=%" %*