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
67509020
Commit
67509020
authored
Apr 09, 2019
by
SataQiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix shellcheck failures of hack/update-vendor-licenses.sh
parent
65dc445a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
.shellcheck_failures
hack/.shellcheck_failures
+0
-1
update-vendor-licenses.sh
hack/update-vendor-licenses.sh
+7
-6
No files found.
hack/.shellcheck_failures
View file @
67509020
...
...
@@ -51,7 +51,6 @@
./hack/update-gofmt.sh
./hack/update-openapi-spec.sh
./hack/update-translations.sh
./hack/update-vendor-licenses.sh
./hack/update-vendor.sh
./hack/update-workspace-mirror.sh
./hack/verify-api-groups.sh
...
...
hack/update-vendor-licenses.sh
View file @
67509020
...
...
@@ -93,7 +93,8 @@ process_content () {
esac
# Find files - only root and package level
local_files
=(
$(
local_files
=()
IFS
=
" "
read
-r
-a
local_files
<<<
"
$(
for
dir_root
in
${
package
}
${
package_root
}
;
do
[[
-d
${
DEPS_DIR
}
/
${
dir_root
}
]]
||
continue
...
...
@@ -101,7 +102,7 @@ process_content () {
find
"
${
DEPS_DIR
}
/
${
dir_root
}
"
\
-xdev
-follow
-maxdepth
${
find_maxdepth
}
\
-type
f
"
${
find_names
[@]
}
"
done
|
sort
-u
)
)
done
|
sort
-u
)
"
local
index
local
f
...
...
@@ -126,13 +127,13 @@ process_content () {
#############################################################################
# MAIN
#############################################################################
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
export
GO111MODULE
=
on
# Check bash version
if
((
${
BASH_VERSINFO
[0]
}
<4
))
;
then
if
((
BASH_VERSINFO[0] < 4
))
;
then
echo
echo
"ERROR: Bash v4+ required."
# Extra help for OSX
...
...
@@ -161,7 +162,7 @@ echo "= Kubernetes licensed under: ="
echo
cat
"
${
LICENSE_ROOT
}
/LICENSE"
echo
echo
"= LICENSE
$(
cat
"
${
LICENSE_ROOT
}
/LICENSE"
|
md5sum
|
awk
'{print $1}'
)
"
echo
"= LICENSE
$(
md5sum
<
"
${
LICENSE_ROOT
}
/LICENSE"
|
awk
'{print $1}'
)
"
echo
"================================================================================"
)
>
${
TMP_LICENSE_FILE
}
...
...
@@ -210,7 +211,7 @@ __EOF__
cat
"
${
file
}
"
echo
echo
"=
${
file
}
$(
cat
"
${
file
}
"
|
md5sum
|
awk
'{print $1}'
)
"
echo
"=
${
file
}
$(
md5sum
<
"
${
file
}
"
|
awk
'{print $1}'
)
"
echo
"================================================================================"
echo
done
>>
${
TMP_LICENSE_FILE
}
...
...
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