From f59e427ee2aec908fa9479e0559c6d4199e5322d Mon Sep 17 00:00:00 2001 From: Joe Eli McIlvain Date: Thu, 4 Feb 2016 15:32:21 -0800 Subject: [PATCH] Exit with failure code when `gem install` command fails. --- bin/dep | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/dep b/bin/dep index bd6c73a..b252114 100755 --- a/bin/dep +++ b/bin/dep @@ -126,6 +126,8 @@ module Dep def run(cmd) puts " #{cmd}" `#{cmd}` + + exit false if $?.to_i != 0 end end end