diff options
author | Androbin <robin.richtsfeld@gmail.com> | 2017-06-27 13:47:43 +0200 |
---|---|---|
committer | Marcel Hlopko <hlopko@google.com> | 2017-06-27 15:06:22 +0200 |
commit | cfb2ec0ad1ab4efcf3e332fb74e91a9cbdd10053 (patch) | |
tree | cfdd7affe0d2e6d70d0d157948148ff81f07193d /compile.sh | |
parent | fa46172bc3b9bd2398a9d79a05fc5cd55f6059ad (diff) |
Minor Bash improvements
Based on output of static analysis tool.
https://github.com/koalaman/shellcheck/wiki/SC2166
https://github.com/koalaman/shellcheck/wiki/SC2207
https://github.com/koalaman/shellcheck/wiki/SC2145
https://github.com/koalaman/shellcheck/wiki/SC2001
https://github.com/koalaman/shellcheck/wiki/SC2129
https://github.com/koalaman/shellcheck/wiki/SC2128
https://github.com/koalaman/shellcheck/wiki/SC2004
https://github.com/koalaman/shellcheck/wiki/SC2048
Closes #3162.
PiperOrigin-RevId: 160261247
Diffstat (limited to 'compile.sh')
-rwxr-xr-x | compile.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.sh b/compile.sh index a8819be330..ce59be4a6c 100755 --- a/compile.sh +++ b/compile.sh @@ -203,7 +203,7 @@ if [ $DO_TESTS ]; then ndk_target="$(get_bind_target //external:android_ndk_for_testing)" sdk_target="$(get_bind_target //external:android_sdk_for_testing)" - if [ "$ndk_target" = "//:dummy" -o "$sdk_target" = "//:dummy" ]; then + if [ "$ndk_target" = "//:dummy" ] || [ "$sdk_target" = "//:dummy" ]; then display "$WARNING Android SDK or NDK are not set in the WORKSPACE file. Android tests will not be run." fi |