Skip to content

Commit

Permalink
Silent grep
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Nov 21, 2023
1 parent 2249cdb commit d4cc715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/bash/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
- name: Check if .bashrc is already update
ansible.builtin.shell: |
set -o pipefail
grep -F "$(cat roles/bash/files/.bashrc | tr '\n' '\01')" <<< "$(cat {{ home_folder }}/.bashrc | tr '\n' '\01')"
grep -qF "$(cat roles/bash/files/.bashrc | tr '\n' '\01')" <<< "$(cat {{ home_folder }}/.bashrc | tr '\n' '\01')"
register: bashrc_updated
failed_when: false
changed_when: false
Expand Down

0 comments on commit d4cc715

Please sign in to comment.