Ignore *.service files when linting bash scripts

Prevents this bashate warning:

./elements/manila-ssh/install.d/fetch-public-ssh-keys.service:1:1: E005 File does not begin with #! or have .sh prefix


Change-Id: I9e4e6b96730ddc62ac1094ec4af0c84863acc60f
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
This commit is contained in:
Goutham Pacha Ravi 2020-07-29 13:24:37 -07:00
parent d9d2f16360
commit 7725e2cbbf
1 changed files with 1 additions and 1 deletions

View File

@ -4,5 +4,5 @@ find ./ -not -wholename \*.tox/\* -and \
\( -name \*.sh -or -wholename \*.d/\* -and \
-not -name \*.md -and -not -name \*.rst -and \
-not -name \*.py -and -not -name \*.conf \) \
-not -name \*.yaml \
-not -name \*.service -not -name \*.yaml \
-print0 | xargs -0 bashate -v -i E006