diff options
Diffstat (limited to 'util/host_command_check.sh')
-rwxr-xr-x | util/host_command_check.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/host_command_check.sh b/util/host_command_check.sh index 57f0b8ffe3..62911bb0c3 100755 --- a/util/host_command_check.sh +++ b/util/host_command_check.sh @@ -80,6 +80,13 @@ should_check() { } main() { + + # Do not run the check unless an EC_[xxx]CMD change is present. + if [[ -z "$(git diff "${PRESUBMIT_COMMIT}~" "${PRESUBMIT_COMMIT}" -U0 | + egrep 'EC_[^ ]*CMD')" ]]; then + exit 0 + fi + ec_errors=() ei=0 # Search all file occurrences of "EC_CMD" and store in array |