From bd349bd2c4d8f68e19f130ea04cf27542e52fb3b Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Sun, 25 Dec 2011 16:44:57 +0100 Subject: [PATCH] bootstrap: do not ignore write_file return value --- bootstrap | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bootstrap b/bootstrap index 75c2ffc..42a3d97 100755 --- a/bootstrap +++ b/bootstrap @@ -141,7 +141,9 @@ write_windows_scripts() -> "setlocal\r\n" "set rebarscript=%~f0\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}, - file:write_file("rebar.ps1", [unicode:encoding_to_bom(UTF16BE), - unicode:characters_to_binary(PowershellScript, utf8, UTF16BE)]). + ok = file:write_file("rebar.ps1", + [unicode:encoding_to_bom(UTF16BE), + unicode:characters_to_binary(PowershellScript, + utf8, UTF16BE)]).