Add support for different endpoint types for Cloud NAT

This commit is contained in:
Wiktor Niesiobędzki
2024-06-14 12:56:34 +00:00
committed by Wiktor Niesiobędzki
parent d1f7210fa8
commit 1f40f2e573
5 changed files with 89 additions and 24 deletions

View File

@@ -17,6 +17,8 @@
set -e
SCRIPT_DIR=$(dirname -- "$(readlink -f -- "$0")")
TFDOC_CMD="${SCRIPT_DIR}/tfdoc.py"
CHECKDOC_CMD="${SCRIPT_DIR}/check_documentation.py"
for file in "$@"; do
if [ -d "${file}" ]; then
@@ -28,4 +30,4 @@ for file in "$@"; do
echo "${dir}"
fi
done | sort | uniq | xargs -I {} /bin/sh -c "echo python \"${SCRIPT_DIR}/tfdoc.py\" {} ; python \"${SCRIPT_DIR}/tfdoc.py\" {}"
done | sort | uniq | xargs -I {} /bin/sh -c "echo python \"${TFDOC_CMD}\" {} ; python \"${TFDOC_CMD}\" {} ; echo python \"${CHECKDOC_CMD}\" {} ; python \"${CHECKDOC_CMD}\" {}"