diff --git a/preupload-hooks/ansible-checks.sh b/preupload-hooks/ansible-checks.sh index 4b1a1b6..69d650b 100755 --- a/preupload-hooks/ansible-checks.sh +++ b/preupload-hooks/ansible-checks.sh @@ -25,4 +25,5 @@ if ! command -v ansible-lint >/dev/null; then fi # Run ansible checks. Just lint for now -ansible-lint $ANSIBLE_PATH +cd $(dirname ${ANSIBLE_PATH}) +ansible-lint $(basename ${ANSIBLE_PATH})