summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <jmccrae@chf.io>2022-05-05 09:15:09 +0600
committerJohn McCrae <jmccrae@chf.io>2022-05-05 09:15:09 +0600
commit3d4736e5c0758eca40abe8895b84d3bd606cf329 (patch)
tree506f707d23ff7734ff4aee094c31ba6ec10972a0
parentad69cdd32464188960b7d1edba6b040b11269486 (diff)
downloadchef-3d4736e5c0758eca40abe8895b84d3bd606cf329.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.rb4
1 files changed, 2 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 84421c106f..0b6759e711 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
@@ -67,8 +67,8 @@ chef_client_launchd "Every 30 mins Infra Client run" do
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 Git.
-execute "Remove native Git client" do
+# We remove git completely to allow homebrew to update it.
+execute "remove git" do
"brew list --full-name | grep '^git@' | xargs -r brew uninstall --ignore-dependencies"
end