Skip to content

Commit

Permalink
Lint: Fix: [306] Shells that use pipes should set the pipefail option
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Feb 16, 2020
1 parent f11a7ce commit 5e84c0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/rollback/tasks/prior-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
- name: Get list position of current symlinked release
shell: "ls releases | grep -n $(basename $(readlink {{ project_current_path }})) | cut -f1 -d:"
shell: |
set -eo pipefail
ls releases | grep -n $(basename $(readlink {{ project_current_path }})) | cut -f1 -d:
args:
chdir: "{{ project_root }}"
register: current_release_position
Expand Down

0 comments on commit 5e84c0f

Please sign in to comment.