summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <jmccrae@chf.io>2022-05-05 11:53:54 +0600
committerJohn McCrae <jmccrae@chf.io>2022-05-05 11:53:54 +0600
commit98a935d95bb48f2ea19c8776de31c66ac503da24 (patch)
tree0e8eb4f97d8937f166fa6c9e00f50a87395c7577
parent759730e23a5454536bfde668188af77ba26eb193 (diff)
downloadchef-98a935d95bb48f2ea19c8776de31c66ac503da24.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, 2 insertions, 1 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
index 368bc9b943..1a7f77e662 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
@@ -77,7 +77,8 @@ end
bash "remove git" do
code <<~EOH
sudo chown -R $(whoami) $(brew --prefix)/*
- brew uninstall git@2.35.1
+ brew unlink git@2.35.1 --force
+ brew uninstall git@2.35.1 --force
EOH
user "tempadmin"
end