From 91b64a5587745949497163ce0cc6f1b9b283ee37 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Tue, 26 Jul 2022 13:18:04 +0200 Subject: [PATCH] profile/coreos/base: slsa: remove name collision between variable and function __slsa_provenance_report is both a variable and a function, which is confusing. Rename the variable. --- .../profiles/coreos/base/profile.bashrc.slsa-provenance | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/profile.bashrc.slsa-provenance b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/profile.bashrc.slsa-provenance index 384e14d542..bdfcc63e12 100644 --- a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/profile.bashrc.slsa-provenance +++ b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/profile.bashrc.slsa-provenance @@ -14,7 +14,7 @@ cros_post_src_configure_enable_slsa_provenance_report() { einfo "Provenance generation not requested by build; skipping." return 0 fi - export __slsa_provenance_report="yes" + export generate_slsa_provenance_report="yes" } # -- @@ -167,7 +167,7 @@ EOF # -- cros_post_src_install_generate_slsa_provenance_report() { - if [ "${__slsa_provenance_report:-no}" != "yes" ] ; then + if [ "${generate_slsa_provenance_report:-no}" != "yes" ] ; then return fi