Skip to content
Browse files

Capture STDERR output when checking versions with `cmd --version` (py…

…thon is one example). Thanks to Tamir Duberstein.
  • Loading branch information...
1 parent 70c1fea commit 3a250209005884fd2df5e19929e3e983e19a7122 @benhoskings committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/babushka/path_checker.rb
2 lib/babushka/path_checker.rb
@@ -6,7 +6,7 @@ def self.in_path? provided_list
commands = [provided_list].flatten(1).versions
cmds_in_path?(commands) and matching_versions?(commands) {|cmd|
- shell("#{} --version")
+ shell("#{} --version 2>&1")

0 comments on commit 3a25020

Please sign in to comment.
Something went wrong with that request. Please try again.