Skip to content

Commit

Permalink
redirect system() which output to devnull
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Monti committed Apr 21, 2018
1 parent fd60580 commit 55ebb2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pliney/apple_code_signature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class RequirementSet < SuperBlob
# This is actlually a small compiled expression.
# csreq(1) can be used to decompile them
class Requirement < Blob
SYSTEM_HAS_CSREQ = system("which csreq")
SYSTEM_HAS_CSREQ = system("which csreq > /dev/null")
attr_reader :data, :decompiled
def parse
super() do
Expand Down
2 changes: 1 addition & 1 deletion lib/pliney/ipa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class IPA
class ZipExtractError < StandardError
end

SYSTEM_HAS_UNZIP = system("which unzip")
SYSTEM_HAS_UNZIP = system("which unzip > /dev/null")

def self.from_path(path)
ipa = new(Zip::File.open(path))
Expand Down

0 comments on commit 55ebb2a

Please sign in to comment.