diff options
author | John McCrae <jmccrae@chf.io> | 2022-05-08 12:22:18 +0600 |
---|---|---|
committer | John McCrae <jmccrae@chf.io> | 2022-05-08 12:22:18 +0600 |
commit | ea624287c601067036cfe311e4499011227fe461 (patch) | |
tree | ade84a034ec5872ea8bcd842f8c82e766fc6f2ec | |
parent | b0b1cdb309e2dbbbadafee4b057534faa78fc625 (diff) | |
download | chef-ea624287c601067036cfe311e4499011227fe461.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 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb index 840b0567d0..0d5e7d00bd 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb @@ -124,16 +124,16 @@ 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. -bash "remove git" do - code <<~EOH - # echo "password" | sudo chown -R $(whoami) $(brew --prefix)/* - # brew list --full-name | grep '^git@' | xargs brew uninstall --ignore-dependencies - brew uninstall git@2.35.1 --ignore-dependencies - # which git - # echo $PATH - EOH - user "tempadmin" -end +# bash "remove git" do +# code <<~EOH +# # echo "password" | sudo chown -R $(whoami) $(brew --prefix)/* +# # brew list --full-name | grep '^git@' | xargs brew uninstall --ignore-dependencies +# brew uninstall git@2.35.1 --ignore-dependencies +# # which git +# # echo $PATH +# EOH +# user "tempadmin" +# end user "tempadmin" do action :remove |