From e52308fc6c4c10cda7bfc442f194512c940166a1 Mon Sep 17 00:00:00 2001 From: Vitaliy Salnikov Date: Mon, 18 May 2020 18:59:33 +0300 Subject: [PATCH] Change Homebrew dependency handling --- xcode/commonFastfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 707bbf6..f20e5b0 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -11,8 +11,11 @@ private_lane :installDependencies do |options| sh("rm -rf #{podsReposPath}") end - if File.exists? "../Brewfile" - sh("brew bundle --file ../Brewfile") + brew_dependencies = "imagemagick" + sh "brew ls --versions #{brew_dependencies}" do |status, output, command| + unless status.success? + sh("brew install #{brew_dependencies}") + end end if File.exists? "../Gemfile"