lib/io_streams/pgp.rb in iostreams-1.0.0.beta3 vs lib/io_streams/pgp.rb in iostreams-1.0.0.beta4

- old
+ new

@@ -273,10 +273,10 @@ # Notes: # * Importing a new key for the same email address does not remove the prior key if any. # * Invalidated keys must be removed manually. def self.import(key:) version_check - command = "#{executable} --import" + command = "#{executable} --batch --import" out, err, status = Open3.capture3(command, binmode: true, stdin_data: key) logger&.debug { "IOStreams::Pgp.import: #{command}\n#{err}#{out}" } if status.success? && !err.empty? # Sample output