Merge "Exclude PNG images from whitespace linting job"

This commit is contained in:
Zuul 2019-02-16 05:54:36 +00:00 committed by Gerrit Code Review
commit bc9f8466e1

@ -16,7 +16,7 @@
- hosts: all[0]
tasks:
- name: Prevent trailing whitespaces
shell: find . -not -path "*/\.*" -not -path "*/doc/build/*" -not -name "*.tgz" -type f -exec egrep -l " +$" {} \;
shell: find . \! \( -path "*/\.*" -o -path "*/doc/build/*" -o -name "*.tgz" -o -name "*.png" \) -type f -exec egrep -l " +$" {} \;
register: _found_whitespaces
failed_when: _found_whitespaces.stdout != ""
args: