Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e05f85a6
Commit
e05f85a6
authored
Apr 19, 2019
by
aaa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix shellcheck failures on verify-readonly-packages.sh
parent
ac1557a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
.shellcheck_failures
hack/.shellcheck_failures
+0
-1
verify-readonly-packages.sh
hack/verify-readonly-packages.sh
+8
-3
No files found.
hack/.shellcheck_failures
View file @
e05f85a6
...
@@ -47,7 +47,6 @@
...
@@ -47,7 +47,6 @@
./hack/verify-golint.sh
./hack/verify-golint.sh
./hack/verify-no-vendor-cycles.sh
./hack/verify-no-vendor-cycles.sh
./hack/verify-openapi-spec.sh
./hack/verify-openapi-spec.sh
./hack/verify-readonly-packages.sh
./hack/verify-test-featuregates.sh
./hack/verify-test-featuregates.sh
./test/cmd/apply.sh
./test/cmd/apply.sh
./test/cmd/apps.sh
./test/cmd/apps.sh
...
...
hack/verify-readonly-packages.sh
View file @
e05f85a6
...
@@ -22,7 +22,7 @@ set -o errexit
...
@@ -22,7 +22,7 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
readonly
branch
=
${
1
:-${
KUBE_VERIFY_GIT_BRANCH
:-
master
}}
readonly
branch
=
${
1
:-${
KUBE_VERIFY_GIT_BRANCH
:-
master
}}
...
@@ -44,12 +44,17 @@ find_files() {
...
@@ -44,12 +44,17 @@ find_files() {
}
}
IFS
=
$'
\n
'
IFS
=
$'
\n
'
conflicts
=(
$(
find_files |
sed
's|/.readonly||'
|
while
read dir
;
do
conflicts
=()
while
IFS
=
$'
\n
'
read
-r
line
;
do
conflicts+
=(
"
$line
"
)
done
< <
(
find_files |
sed
's|/.readonly||'
|
while
read
-r
dir
;
do
dir
=
${
dir
#./
}
dir
=
${
dir
#./
}
if
kube::util::has_changes
"
${
branch
}
"
"^
${
dir
}
/[^/]*
\$
"
'/\.readonly$|/BUILD$|/zz_generated|/\.generated\.|\.proto$|\.pb\.go$'
>
/dev/null
;
then
if
kube::util::has_changes
"
${
branch
}
"
"^
${
dir
}
/[^/]*
\$
"
'/\.readonly$|/BUILD$|/zz_generated|/\.generated\.|\.proto$|\.pb\.go$'
>
/dev/null
;
then
echo
"
${
dir
}
"
echo
"
${
dir
}
"
fi
fi
done)
)
done
)
unset
IFS
unset
IFS
if
[
${#
conflicts
[@]
}
-gt
0
]
;
then
if
[
${#
conflicts
[@]
}
-gt
0
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment