Skip to content

Commit

Permalink
roles/brew: fix PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed May 27, 2024
1 parent 10ec793 commit ada2554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playbooks/roles/brew/tasks/MacOSX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@

- name: set up PATH
shell: |
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/{{ lookup('env', 'USER') }}/.zprofile
if ! grep /opt/homebrew/bin/brew .zprofile; then
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/{{ lookup('env', 'USER') }}/.zprofile
fi
eval "$(/opt/homebrew/bin/brew shellenv)"
register: shell
changed_when: shell.stderr

0 comments on commit ada2554

Please sign in to comment.