manila-image-elements/tools/run_bashate.sh
Goutham Pacha Ravi 7725e2cbbf 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>
2020-07-29 13:24:37 -07:00

9 lines
298 B
Bash
Executable File

#!/bin/bash -xe
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 \*.service -not -name \*.yaml \
-print0 | xargs -0 bashate -v -i E006