瀏覽代碼

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.
pull/3/head
Jan Klötzke 14 年之前
committed by Tuncer Ayaz
父節點
當前提交
a3a02ef944
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      rebar.bat

+ 2
- 2
rebar.bat 查看文件

@ -1,4 +1,4 @@
@echo off
setlocal
set rebarscript=%0
escript.exe %rebarscript:.bat=% %*
set rebarscript=%~f0
escript.exe "%rebarscript:.bat=%" %*

Loading…
取消
儲存