Google's styleguide has incorrect bash being used, they are using string comparison operators for numeric comparisons (see the various `$? != 0` and $PIPESTATUS).
[[ -1 -eq 0-1 ]] && echo true || echo false
[[ -1 == 0-1 ]] && echo true || echo false
https://www.gnu.org/software/bash/manual/html_node/Bash-Cond...