MON-311 add comments
This commit is contained in:
parent
8c41f1f5b8
commit
999f301d3a
@ -15,8 +15,11 @@ for path in $(find "$(get_scope $1)" -path ./incubator -prune -o -name 'monitors
|
|||||||
if ! [ -f modules.tf ] && grep -q filter_tags_use_defaults inputs.tf; then
|
if ! [ -f modules.tf ] && grep -q filter_tags_use_defaults inputs.tf; then
|
||||||
relative=""
|
relative=""
|
||||||
current="${PWD}"
|
current="${PWD}"
|
||||||
|
# iterate on path until we go back to root
|
||||||
while [[ "$(basename $current)" != "$root" ]]; do
|
while [[ "$(basename $current)" != "$root" ]]; do
|
||||||
|
# for each iteration add "../" to generate relative path
|
||||||
relative="${relative}../"
|
relative="${relative}../"
|
||||||
|
# remove last directory from current path
|
||||||
current="$(dirname $current)"
|
current="$(dirname $current)"
|
||||||
done
|
done
|
||||||
# add the filter tags module
|
# add the filter tags module
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user