diff options
-rwxr-xr-x | travis/detect-what-to-build.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/travis/detect-what-to-build.sh b/travis/detect-what-to-build.sh index 42aaec3a43b..12bf892d419 100755 --- a/travis/detect-what-to-build.sh +++ b/travis/detect-what-to-build.sh @@ -1,8 +1,13 @@ #!/bin/bash +if (( ${#BASH_SOURCE[@]} == 1 )); then + echo "This script must be sourced." + exit 1 +fi + if [[ $TRAVIS_PULL_REQUEST == false ]]; then export SHOULD_BUILD=all - exit 0 + return 0 fi # Future use |