summaryrefslogtreecommitdiff
path: root/test-docs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test-docs.sh')
-rwxr-xr-xtest-docs.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/test-docs.sh b/test-docs.sh
index 28d71dd5..8cfa66c3 100755
--- a/test-docs.sh
+++ b/test-docs.sh
@@ -1,9 +1,12 @@
#!/bin/sh
+set -x
+CHECKOUT_DIR=".ansible-checkout"
MOD_REPO="$1"
-git clone https://github.com/ansible/ansible ansible-checkout
-cd ansible-checkout
+# Hidden file to avoid the module_formatter recursing into the checkout
+git clone https://github.com/ansible/ansible "$CHECKOUT_DIR"
+cd "$CHECKOUT_DIR"
git submodule update --init
rm -rf "lib/ansible/modules/$MOD_REPO"
ln -s ../ "lib/ansible/modules/$MOD_REPO"