mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
bootstrap: do not ignore write_file return value
This commit is contained in:
parent
8c01734e98
commit
bd349bd2c4
1 changed files with 5 additions and 3 deletions
|
@ -141,7 +141,9 @@ write_windows_scripts() ->
|
||||||
"setlocal\r\n"
|
"setlocal\r\n"
|
||||||
"set rebarscript=%~f0\r\n"
|
"set rebarscript=%~f0\r\n"
|
||||||
"escript.exe \"%rebarscript:.bat=%i\" %*\r\n",
|
"escript.exe \"%rebarscript:.bat=%i\" %*\r\n",
|
||||||
file:write_file("rebar.cmd", CmdScript),
|
ok = file:write_file("rebar.cmd", CmdScript),
|
||||||
UTF16BE = {utf16, big},
|
UTF16BE = {utf16, big},
|
||||||
file:write_file("rebar.ps1", [unicode:encoding_to_bom(UTF16BE),
|
ok = file:write_file("rebar.ps1",
|
||||||
unicode:characters_to_binary(PowershellScript, utf8, UTF16BE)]).
|
[unicode:encoding_to_bom(UTF16BE),
|
||||||
|
unicode:characters_to_binary(PowershellScript,
|
||||||
|
utf8, UTF16BE)]).
|
||||||
|
|
Loading…
Reference in a new issue