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

TrivialFix

Change-Id: I9e4e6b96730ddc62ac1094ec4af0c84863acc60f
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
changes/42/743842/1
Goutham Pacha Ravi 3 years ago
parent d9d2f16360
commit 7725e2cbbf

@ -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

Loading…
Cancel
Save