浏览代码

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).

正在加载...
取消
保存