Skip to content

Commit

Permalink
Fixed regex for pipefail rule (#2564)
Browse files Browse the repository at this point in the history
Co-authored-by: Ajinkya <audgirka@redhat.com>
  • Loading branch information
audgirka and audgirka committed Oct 6, 2022
1 parent 96f41d4 commit e839b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblelint/rules/risky_shell_pipe.py
Expand Up @@ -27,7 +27,7 @@ class ShellWithoutPipefail(AnsibleLintRule):
tags = ["command-shell"]
version_added = "v4.1.0"

_pipefail_re = re.compile(r"^\s*set.*[+-][A-z]*o\s*pipefail", re.M)
_pipefail_re = re.compile(r"^\s*set.*[+-][A-Za-z]*o\s*pipefail", re.M)
_pipe_re = re.compile(r"(?<!\|)\|(?!\|)")

def matchtask(
Expand Down

0 comments on commit e839b26

Please sign in to comment.