diff options
author | John McCrae <jmccrae@chf.io> | 2022-05-08 08:55:04 +0600 |
---|---|---|
committer | John McCrae <jmccrae@chf.io> | 2022-05-08 08:55:04 +0600 |
commit | f9ec43e0e7db0e68fd2937badd9548ee2ea83158 (patch) | |
tree | 57be0141c9a017bd31790fb18dbc126683704b86 | |
parent | 2a16273afe456971409ce217c4af46ed51323e53 (diff) | |
download | chef-f9ec43e0e7db0e68fd2937badd9548ee2ea83158.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 | 5 |
1 files changed, 4 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 3d9bc9dd68..0c6619c28d 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb @@ -89,9 +89,12 @@ 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 + # brew uninstall git@2.35.1 --ignore-dependencies + which git + echo $PATH EOH user "tempadmin" + live_stream true end user "tempadmin" do |