Просмотр исходного кода

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
Родитель
Сommit
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=%" %*

Загрузка…
Отмена
Сохранить