From ab467380ca32f7ebe5597b52b2e597b0a392aa58 Mon Sep 17 00:00:00 2001 From: Iulian Onofrei Date: Thu, 3 Nov 2022 17:04:18 +0200 Subject: [PATCH] Fix error-prone shell command status check --- fastlane_core/lib/fastlane_core/cert_checker.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastlane_core/lib/fastlane_core/cert_checker.rb b/fastlane_core/lib/fastlane_core/cert_checker.rb index 0af9394d64f..bb78e8ee8cf 100644 --- a/fastlane_core/lib/fastlane_core/cert_checker.rb +++ b/fastlane_core/lib/fastlane_core/cert_checker.rb @@ -160,13 +160,13 @@ def self.install_wwdr_certificate(cert_alias) import_command = "curl -f -o #{filename} #{url} && security import #{filename} #{keychain}" UI.verbose("Installing WWDR Cert: #{import_command}") - stdout, stderr, _status = Open3.capture3(import_command) + stdout, stderr, status = Open3.capture3(import_command) if FastlaneCore::Globals.verbose? UI.command_output(stdout) UI.command_output(stderr) end - unless $?.success? + unless status.success? UI.verbose("Failed to install WWDR Certificate, checking output to see why") # Check the command output, WWDR might already exist unless /The specified item already exists in the keychain./ =~ stderr