kolla-ansible/tools/run-bashate.sh
Marc 'risson' Schmitt 839ec629bf
tools: use /usr/bin/env bash instead of /bin/bash
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Change-Id: I374f7427a4318d00ca474367818117e11789ec13
2021-08-17 14:29:33 +02:00

11 lines
459 B
Bash
Executable File

#!/usr/bin/env bash
# Ignore E006 -- line length greater than 80 char
# Error on E005 -- file does not begin with #! or have .sh prefix
# Error on E042 -- local declaration hides errors
# Error on E043 -- arithmetic compound has inconsistent return semantics
ROOT=$(readlink -fn $(dirname $0)/.. )
find $ROOT -not -wholename \*.tox/\* -and -not -wholename \*.test/\* \
-and -name \*.sh -print0 | xargs -0 bashate -v --ignore E006 --error E005,E042,E043