diff options
author | John McCrae <jmccrae@chf.io> | 2022-05-08 09:45:56 +0600 |
---|---|---|
committer | John McCrae <jmccrae@chf.io> | 2022-05-08 09:45:56 +0600 |
commit | 934f48bf0282b04bb5403e5763d3c6dcead23d45 (patch) | |
tree | e4f88cf96223c6acd55bba39b0f1ce0b9bc9e4a9 | |
parent | 44a5c42ca6d48147129739060b9ce14efca9243d (diff) | |
download | chef-934f48bf0282b04bb5403e5763d3c6dcead23d45.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.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb index 9970c64bea..2c47b18d07 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb @@ -93,10 +93,12 @@ file "/usr/local/etc/bash_completion.d/git-completion.bash" do owner "root" end -# execute "changing ownership of the git cask" do -# command "chown $USER /usr/local/var/homebrew/locks/git@2.35.1.formula.lock" -# live_stream true -# end +# /usr/local/Cellar/git@2.35.1/2.35.1/etc/bash_completion.d/git-completion.bash + +execute "changing ownership of the git cask" do + command "chmod -R 777 /usr/local/Cellar/git@2.35.1" + live_stream true +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. |