File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 27
27
./hack/make-rules/test.sh
28
28
./hack/make-rules/update.sh
29
29
./hack/make-rules/verify.sh
30
- ./hack/make-rules/vet.sh
31
30
./hack/pin-dependency.sh
32
31
./hack/test-integration.sh
33
32
./hack/update-vendor.sh
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ set -o errexit
18
18
set -o nounset
19
19
set -o pipefail
20
20
21
- KUBE_ROOT=$( dirname " ${BASH_SOURCE} " ) /../..
21
+ KUBE_ROOT=$( dirname " ${BASH_SOURCE[0] } " ) /../..
22
22
source " ${KUBE_ROOT} /hack/lib/init.sh"
23
23
24
24
cd " ${KUBE_ROOT} "
47
47
48
48
if [[ ${# targets[@]} -eq 0 ]]; then
49
49
# Do not run on third_party directories or generated client code or build tools.
50
- targets=$( go list -e ./... | egrep -v " /(build|third_party|vendor|staging|clientset_generated)/" )
50
+ while IFS=' ' read -r line; do
51
+ targets+=(" ${line} " )
52
+ done < <( go list -e ./... | grep -E -v " /(build|third_party|vendor|staging|clientset_generated)/" )
51
53
fi
52
54
53
- go vet " ${goflags[@]: +${goflags[@]} } " ${targets[@]}
55
+ go vet " ${goflags[@]: +${goflags[@]} } " " ${targets[@]} "
You can’t perform that action at this time.
0 commit comments