summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-14 07:39:53 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-14 07:39:53 +0900
commit1b6f6413dbc4ec108c8bb54640cfad430c153806 (patch)
treea5bf1610b193c75bee54af8d65a7dbdf578c127a
parent58362fc30c7e63bb1acf739eeb9a7832a0e3e450 (diff)
parentdeb5f59bec6d8da315bcec0d593d931bb759a12f (diff)
downloadmruby-1b6f6413dbc4ec108c8bb54640cfad430c153806.tar.gz
mruby-1b6f6413dbc4ec108c8bb54640cfad430c153806.zip
Merge pull request #1855 from take-cheeze/fix_mrbc_compile_error
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