diff --git a/lib/awestruct/handlers/base_handler.rb b/lib/awestruct/handlers/base_handler.rb index e30aaa8c..aa7cb263 100644 --- a/lib/awestruct/handlers/base_handler.rb +++ b/lib/awestruct/handlers/base_handler.rb @@ -99,6 +99,7 @@ def to_chain def execute_shell(command, input=nil) Open3.popen3(command) do |stdin, stdout, _| stdin.puts input unless input.nil? + stdin.close out = stdout.read end rescue Errno::EPIPE