Merge branch 'MON-437_fix_readme_loop_scope' into 'master'

Revert "MON-437 add missing scope to readme script"

Closes MON-437

See merge request claranet/pt-monitoring/projects/datadog/terraform/monitors!50
This commit is contained in:
Quentin Manfroi 2019-04-23 18:36:00 +02:00
commit 37e267cb2c

View File

@ -10,7 +10,7 @@ sed -i '/### Monitors summary ###/q' README.md
# add a newline after listing section # add a newline after listing section
echo >> README.md echo >> README.md
# loop over all ready monitors sets on the repo # loop over all ready monitors sets on the repo
for path in $(find "$(get_scope $1)" -mindepth 1 \( -path './incubator' -o -path './scripts' -o -path './testing' -o -path '*/\.*' \) -prune -o -type d -print | sort -fdbi); do for path in $(find -mindepth 1 \( -path './incubator' -o -path './scripts' -o -path './testing' -o -path '*/\.*' \) -prune -o -type d -print | sort -fdbi); do
# split path in directories # split path in directories
directories=($(list_dirs $path)) directories=($(list_dirs $path))
# loop over directories in path # loop over directories in path