diff --git a/hack/verify-govulncheck.sh b/hack/verify-govulncheck.sh index 5057f9a3142..d9c2c156d4a 100755 --- a/hack/verify-govulncheck.sh +++ b/hack/verify-govulncheck.sh @@ -36,7 +36,8 @@ kube::util::ensure-temp-dir WORKTREE="${KUBE_TEMP}/worktree" # Create a copy of the repo with $BRANCH checked out -git worktree add -f "${WORKTREE}" "${BRANCH}" +git worktree add -f -q "${WORKTREE}" "${BRANCH}" + # Clean up the copy on exit kube::util::trap_add "git worktree remove -f ${WORKTREE}" EXIT