summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'tasks')
-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