summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <jmccrae@chf.io>2022-05-05 11:41:14 +0600
committerJohn McCrae <jmccrae@chf.io>2022-05-05 11:41:14 +0600
commit759730e23a5454536bfde668188af77ba26eb193 (patch)
tree139936e53c3b1d5b978ad6666aee101170192278
parentbc7a9f24b462b6f3973d0317191c9e92ea69229a (diff)
downloadchef-759730e23a5454536bfde668188af77ba26eb193.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.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
index 1237950353..368bc9b943 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
@@ -76,6 +76,7 @@ end
# We remove git completely to allow homebrew to update it.
bash "remove git" do
code <<~EOH
+ sudo chown -R $(whoami) $(brew --prefix)/*
brew uninstall git@2.35.1
EOH
user "tempadmin"