-
-
Save thibault-ml/00be9e82ed4fd548c29d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: ext/extconf.rb | |
--- ext/extconf.rb (Working copy) | |
+++ ext/extconf.rb (Patch) | |
@@ -7,8 +7,7 @@ | |
### Read the output of a command using the fork+pipe syntax so execution errors | |
### propagate to Ruby. | |
def read_cmd_output( *cmd ) | |
- output = IO.read( '|-' ) or exec( *cmd ) | |
- return output.chomp | |
+ return IO.popen([*cmd]) { |io| io.read.chomp } | |
end | |
### Turn a version string into a Comparable binary datastructure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment