File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 47
47
./hack/verify-golint.sh
48
48
./hack/verify-no-vendor-cycles.sh
49
49
./hack/verify-openapi-spec.sh
50
- ./hack/verify-readonly-packages.sh
51
50
./hack/verify-test-featuregates.sh
52
51
./test/cmd/apply.sh
53
52
./test/cmd/apps.sh
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ set -o errexit
22
22
set -o nounset
23
23
set -o pipefail
24
24
25
- KUBE_ROOT=$( dirname " ${BASH_SOURCE} " ) /..
25
+ KUBE_ROOT=$( dirname " ${BASH_SOURCE[0] } " ) /..
26
26
source " ${KUBE_ROOT} /hack/lib/init.sh"
27
27
28
28
readonly branch=${1:- ${KUBE_VERIFY_GIT_BRANCH:- master} }
@@ -44,12 +44,17 @@ find_files() {
44
44
}
45
45
46
46
IFS=$' \n '
47
- conflicts=($( find_files | sed ' s|/.readonly||' | while read dir; do
47
+
48
+ conflicts=()
49
+ while IFS=$' \n ' read -r line; do
50
+ conflicts+=( " $line " )
51
+ done < <( find_files | sed ' s|/.readonly||' | while read -r dir; do
48
52
dir=${dir# ./ }
49
53
if kube::util::has_changes " ${branch} " " ^${dir} /[^/]*\$ " ' /\.readonly$|/BUILD$|/zz_generated|/\.generated\.|\.proto$|\.pb\.go$' > /dev/null; then
50
54
echo " ${dir} "
51
55
fi
52
- done))
56
+ done)
57
+
53
58
unset IFS
54
59
55
60
if [ ${# conflicts[@]} -gt 0 ]; then
You can’t perform that action at this time.
0 commit comments