Fix evaluate-changed-paths.sh script (#56617)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 30 Jul 2021 14:12:26 +0000 (16:12 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Jul 2021 14:12:26 +0000 (16:12 +0200)
commitc48f4bf78e4a593bb790e4d8637ff2c5c0a97b60
tree1cee0db1c087af620db60e80b9d6dbb552ac4dcd
parent83e3c64793fcf3927045cd00c2c3a568bf2fa6ac
Fix evaluate-changed-paths.sh script (#56617)

https://github.com/dotnet/runtime/pull/56479 uncovered a bug in the script where it didn't append the full `tmp` array to `include_paths` and `exclude_paths` but just the first element.
Shellcheck actually complained about this with "SC2128: Expanding an array without an index only gives the first element."

The old bash in macOS has a quirk where this doesn't happen so we didn't see it before https://github.com/dotnet/runtime/pull/56479.
eng/pipelines/evaluate-changed-paths.sh