summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <jmccrae@chf.io>2022-05-05 10:19:48 +0600
committerJohn McCrae <jmccrae@chf.io>2022-05-05 10:19:48 +0600
commit3292bfc73ff4156a7b7308e6f7f948b9d8342dec (patch)
treeb784b474875aac9b71dfd31f6ba256325870dd6a
parent18983378eca98b97d05fa3d7ba00377f60e41601 (diff)
downloadchef-3292bfc73ff4156a7b7308e6f7f948b9d8342dec.tar.gz
Updated the recipe to remove Git completely before updating it.
Signed-off-by: John McCrae <jmccrae@chf.io>
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/macos.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
index 37fe95b463..95b2b8e827 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
@@ -69,8 +69,7 @@ end
# We're overcoming a problem where Homebrew updating Git on MacOS throws a symlink error
# We remove git completely to allow homebrew to update it.
execute "remove git" do
- # command "brew list --full-name | grep '^git@' | xargs -r brew uninstall --ignore-dependencies"
- command "brew uninstall git@2.35.1 --ignore-dependencies"
+ command "rm -rf /usr/local/Cellar/git"
end
include_recipe "git"