summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-03-14 03:44:22 +0900
committertake_cheeze <[email protected]>2014-03-14 03:44:22 +0900
commitdeb5f59bec6d8da315bcec0d593d931bb759a12f (patch)
treea5bf1610b193c75bee54af8d65a7dbdf578c127a
parent58362fc30c7e63bb1acf739eeb9a7832a0e3e450 (diff)
downloadmruby-deb5f59bec6d8da315bcec0d593d931bb759a12f.tar.gz
mruby-deb5f59bec6d8da315bcec0d593d931bb759a12f.zip
fix compile error check of Mrbc command
-rw-r--r--tasks/mruby_build_commands.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/mruby_build_commands.rake b/tasks/mruby_build_commands.rake
index 24a77206a..d64b20ff3 100644
--- a/tasks/mruby_build_commands.rake
+++ b/tasks/mruby_build_commands.rake
@@ -271,7 +271,7 @@ module MRuby
out.puts io.read
end
# if mrbc execution fail, drop the file
- unless $?.exitstatus
+ if $?.exitstatus != 0
File.delete(out.path)
exit(-1)
end