From 7725e2cbbfd2f99afed38ac57aa787f37ba6e421 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Wed, 29 Jul 2020 13:24:37 -0700 Subject: [PATCH] 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 --- tools/run_bashate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/run_bashate.sh b/tools/run_bashate.sh index 702cc5a..708974c 100755 --- a/tools/run_bashate.sh +++ b/tools/run_bashate.sh @@ -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