From fdb7c480e83ecfabbfcb8ca63d7b9c1169fec966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= <66256922+daniel-weisse@users.noreply.github.com> Date: Fri, 11 Nov 2022 16:16:14 +0100 Subject: [PATCH] Fix license check unbound variable (#534) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- hack/check-licenses.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/check-licenses.sh b/hack/check-licenses.sh index 52e8ea573..daeacbebd 100755 --- a/hack/check-licenses.sh +++ b/hack/check-licenses.sh @@ -10,6 +10,7 @@ not_allowed() { err=1 } +err=0 go mod download go-licenses csv ./... | { @@ -21,8 +22,7 @@ go-licenses csv ./... | { case ${lic} in Apache-2.0 | BSD-2-Clause | BSD-3-Clause | ISC | MIT) ;; - \ - MPL-2.0) + MPL-2.0) case ${pkg} in github.com/talos-systems/talos/pkg/machinery/config/encoder) ;;