diff options
author | Valery Sizov <vsv2711@gmail.com> | 2014-11-06 12:47:38 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2014-11-06 14:07:42 +0300 |
commit | bf8b87411701667a8d9e608b2e7b3171c4c3e551 (patch) | |
tree | b413e53d02434990535723d63ece1b7f14cae96c /lib/gitlab/utils.rb | |
parent | d1b489e048e2bd9304ae335d9105e6efde99012b (diff) |
fix system silent call
Diffstat (limited to 'lib/gitlab/utils.rb')
-rw-r--r-- | lib/gitlab/utils.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/utils.rb b/lib/gitlab/utils.rb index bc30364550a..bd184c27187 100644 --- a/lib/gitlab/utils.rb +++ b/lib/gitlab/utils.rb @@ -5,10 +5,9 @@ module Gitlab # Run system command without outputting to stdout. # # @param cmd [Array<String>] - # @return [Integer] exit status + # @return [Boolean] def system_silent(cmd) - IO.popen(cmd).close - $?.exitstatus + Popen::popen(cmd).last.zero? end end end |