diff options
author | Arnstein Ressem <aressem@verizonmedia.com> | 2020-12-18 14:57:23 +0100 |
---|---|---|
committer | Arnstein Ressem <aressem@verizonmedia.com> | 2020-12-18 14:57:23 +0100 |
commit | f5733a9b676e9bd73178e893193ee71e3739dbfd (patch) | |
tree | fd26df601c4b3bff941e9c70ed0a2ab9ccf1fc95 /travis | |
parent | 2760386b4e986d8f1f4217a3dc120db4b23245ca (diff) |
Escape dots.
Diffstat (limited to 'travis')
-rwxr-xr-x | travis/detect-what-to-build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/travis/detect-what-to-build.sh b/travis/detect-what-to-build.sh index 4387b6e4334..42aaec3a43b 100755 --- a/travis/detect-what-to-build.sh +++ b/travis/detect-what-to-build.sh @@ -16,9 +16,9 @@ FILES=$(for C in $COMMITS; do JSON=$(curl -sLf https://api.github.com/repos/$TRA if [[ -z $FILES ]]; then SHOULD_BUILD=all -elif ! grep -v -E "(.h|.hh|.hxx|.c|.cpp|.cxx)$" <<< "$FILES" &> /dev/null; then +elif ! grep -v -E "(\.h|\.hh|\.hxx|\.c|\.cpp|\.cxx)$" <<< "$FILES" &> /dev/null; then SHOULD_BUILD=cpp -elif ! grep -v -E "(.java)$" <<< "$FILES" &> /dev/null; then +elif ! grep -v -E "(\.java)$" <<< "$FILES" &> /dev/null; then SHOULD_BUILD=java else SHOULD_BUILD=all |