From 523272a3a6a2f0c04858ddcc505480c02530894e Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 21 Apr 2020 13:25:27 +0100 Subject: [PATCH] Make linting use of find portable Current implementation failed to lint on BSD-like systems due to the use of GNU specific find feature. Change-Id: I0dbf635eb5b2e9b37dd0062ca165a5b51d090543 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index b10fad675..c2a174bb1 100644 --- a/tox.ini +++ b/tox.ini @@ -41,7 +41,7 @@ commands = flake8 {posargs} bash -c "find playbooks -type f -regex '.*.ya?ml' ! -regex '.*vars\/.*' -print0 | \ xargs -t -n1 -0 ansible-lint" - bash -c 'find roles -maxdepth 1 -mindepth 1 -type d -printf "%p/\n" | \ + bash -c 'find roles -maxdepth 1 -mindepth 1 -type d | \ xargs -t -n1 ansible-lint' # Ansible Syntax Check bash -c "find playbooks -type f -regex '.*.ya?ml' ! -regex '.*vars\/.*' -exec \