diff options
author | Sergey Frolov <sfrolov@google.com> | 2021-01-15 16:25:39 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-16 07:43:30 +0000 |
commit | 0249329a6aadc70c15d2b70c2cc6efdb115d4e6a (patch) | |
tree | 2e908dfd94ae8c2a7396a8bb4d07711f26490d54 | |
parent | 5046e96cfa81350e53ffc4ac0f87e1b5f9c6eee1 (diff) | |
download | vboot-0249329a6aadc70c15d2b70c2cc6efdb115d4e6a.tar.gz |
ensure_not_tainted_license: skip if not found
This change makes ensure_not_tainted_license.sh only emit a warning if
license file is not found, as opposed to failing.
BUG=chromium:1163996
TEST=N/A
BRANCH=none
Change-Id: I14103bc520efabf3e0c1424e8a5cae259d42c966
Signed-off-by: Sergey Frolov <sfrolov@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2632876
Commit-Queue: George Engelbrecht <engeg@google.com>
Reviewed-by: George Engelbrecht <engeg@google.com>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
-rwxr-xr-x | scripts/image_signing/ensure_not_tainted_license.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/image_signing/ensure_not_tainted_license.sh b/scripts/image_signing/ensure_not_tainted_license.sh index cd640493..daa00b55 100755 --- a/scripts/image_signing/ensure_not_tainted_license.sh +++ b/scripts/image_signing/ensure_not_tainted_license.sh @@ -42,8 +42,9 @@ main() { license=$(find "${license_dir}" -name about_os_credits.html 2>/dev/null) if [[ -z "${license}" ]]; then - echo "License file about_os_credits.html not found in ${license_dir}" - exit 1 + echo "License file about_os_credits.html not found in ${license_dir}." + echo "Skipping the check of tainted license." + exit 0 fi tainted_tag="<!-- tainted -->" |