From a4a54ea98e26a4fc6ccbaa14c3dfbf35a6b5df90 Mon Sep 17 00:00:00 2001 From: SungdooYoo Date: Thu, 30 Sep 2021 19:19:46 +0900 Subject: [PATCH] fix: plugin not running on `pod update` --- lib/cocoapods_plugin.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cocoapods_plugin.rb b/lib/cocoapods_plugin.rb index 910e123..75abbf6 100644 --- a/lib/cocoapods_plugin.rb +++ b/lib/cocoapods_plugin.rb @@ -10,8 +10,9 @@ def run verify_podfile_exists! if self.respond_to? :verify_podfile_exists! dont_talk_to_me_or_my_son_ever_again = `defaults read net.Ashton-W.cocoapods-update-if-you-dare DontAskAgain 2>/dev/null`.chomp == "1" + specific_pod_to_update_was_provided = @pods.length > 0 - unless @pods or dont_talk_to_me_or_my_son_ever_again + unless specific_pod_to_update_was_provided or dont_talk_to_me_or_my_son_ever_again puts "\n" puts "[!] Running `pod update` will update ALL pods.".yellow