diff --git a/scripts/test.sh b/scripts/test.sh index cb35af673d5b..3b15638cfb3e 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -509,7 +509,7 @@ function bom_pass { log_callout "Checking bill of materials..." # https://github.com/golang/go/commit/7c388cc89c76bc7167287fb488afcaf5a4aa12bf # shellcheck disable=SC2207 - modules=($(modules_exp)) + modules=($(modules_for_bom)) # Internally license-bill-of-materials tends to modify go.sum run cp go.sum go.sum.tmp || return 2 diff --git a/scripts/test_lib.sh b/scripts/test_lib.sh index 41e9a5e15311..ebd739156b1f 100644 --- a/scripts/test_lib.sh +++ b/scripts/test_lib.sh @@ -196,7 +196,7 @@ function modules() { echo "${modules[@]}" } -function modules_exp() { +function modules_for_bom() { for m in $(modules); do echo -n "${m}/... " done diff --git a/scripts/updatebom.sh b/scripts/updatebom.sh index dd482a325f9c..2c6bf8720b0d 100755 --- a/scripts/updatebom.sh +++ b/scripts/updatebom.sh @@ -12,7 +12,7 @@ function bom_fixlet { local modules # shellcheck disable=SC2207 - modules=($(modules_exp)) + modules=($(modules_for_bom)) if GOFLAGS=-mod=mod run_go_tool "github.com/appscodelabs/license-bill-of-materials" \ --override-file ./bill-of-materials.override.json \