瀏覽代碼

Simplify windows script

pull/2262/head
Regan Heath 5 年之前
父節點
當前提交
58a40f156b
共有 1 個檔案被更改,包括 1 行新增3 行删除
  1. +1
    -3
      src/rebar_prv_escriptize.erl

+ 1
- 3
src/rebar_prv_escriptize.erl 查看文件

@ -276,7 +276,5 @@ write_windows_script(Target) ->
CmdPath = unicode:characters_to_list(Target) ++ ".cmd",
CmdScript=
"@echo off\r\n"
"setlocal\r\n"
"set rebarscript=%~f0\r\n"
"escript.exe \"%rebarscript:.cmd=%\" %*\r\n",
"escript.exe \"%~dpn0\" %*\r\n",
ok = file:write_file(CmdPath, CmdScript).

Loading…
取消
儲存