File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ steps:
3636
3737 # Do not prune if changing tests themselves
3838 _INFRA_FOLDERS="build test .github"
39- while read _changed_folders ; do
40- echo "${_changed_folders %/}"
41- if [[ "${_INFRA_FOLDERS}" =~ "${_changed_folders %/}" ]]; then
42- echo "Infrastructure folder ${_changed_folders %/} has changed; no tests will be pruned."
39+ while read d ; do
40+ echo "${d %/}"
41+ if [[ "${_INFRA_FOLDERS}" =~ "${d %/}" ]]; then
42+ echo "Infrastructure folder ${d %/} has changed; no tests will be pruned."
4343 exit 0 # do not prune
4444 fi
45- done
45+ done < _changed_folders
4646
4747 # Remove leaf folders without changes or non-tf resources
4848 for d in `find . -type d -name 'test' -prune -o -links 2 -printf '%P\n'`; do
You can’t perform that action at this time.
0 commit comments