commit | 5306a99a1a0ba8eefca9cba2c56ae548e0bef231 | [log] [tgz] |
---|---|---|
author | Sam Ruby <rubys@intertwingly.net> | Fri Nov 22 14:34:30 2019 -0500 |
committer | Sam Ruby <rubys@intertwingly.net> | Fri Nov 22 14:34:30 2019 -0500 |
tree | 5fb46c3e03ba980e6644f6ae233232db474f9856 | |
parent | 5b25a3eb5003004601ab13053ff4e6647aa11c91 [diff] |
don't capture stdin on svn up attempts
diff --git a/Rakefile b/Rakefile index 8d2cc09..2a9b3a9 100644 --- a/Rakefile +++ b/Rakefile
@@ -121,7 +121,14 @@ sleep n end begin - outerr, status = Open3.capture2e('svn up') + r, w = IO.pipe + pid = Process.spawn('svn up', out: w, err: [:child, :out]) + w.close + + pid, status = Process.wait2 + outerr = r.read + r.close + if status.success? break end