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
855c291c
Unverified
Commit
855c291c
authored
Apr 29, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 29, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76858 from SataQiu/fix-cluster-clientbin-20190420
Fix shellcheck failures of cluster/clientbin.sh
parents
9b437f95
aacab2ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
clientbin.sh
cluster/clientbin.sh
+6
-9
.shellcheck_failures
hack/.shellcheck_failures
+0
-1
No files found.
cluster/clientbin.sh
View file @
855c291c
...
@@ -65,12 +65,6 @@ case "$(uname -m)" in
...
@@ -65,12 +65,6 @@ case "$(uname -m)" in
;;
;;
esac
esac
# Get the absolute path of the directory component of a file, i.e. the
# absolute path of the dirname of $1.
get_absolute_dirname
()
{
echo
"
$(
cd
"
$(
dirname
"
$1
"
)
"
&&
pwd
)
"
}
function
get_bin
()
{
function
get_bin
()
{
bin
=
"
${
1
:-}
"
bin
=
"
${
1
:-}
"
srcdir
=
"
${
2
:-}
"
srcdir
=
"
${
2
:-}
"
...
@@ -93,9 +87,12 @@ function get_bin() {
...
@@ -93,9 +87,12 @@ function get_bin() {
# The bazel go rules place binaries in subtrees like
# The bazel go rules place binaries in subtrees like
# "bazel-bin/source/path/linux_amd64_pure_stripped/binaryname", so make sure
# "bazel-bin/source/path/linux_amd64_pure_stripped/binaryname", so make sure
# the platform name is matched in the path.
# the platform name is matched in the path.
locations+
=(
$(
find
"
${
KUBE_ROOT
}
/bazel-bin/
${
srcdir
}
"
-type
f
-executable
\
while
IFS
=
$'
\n
'
read
-r
line
;
do
-path
"*/
${
host_os
}
_
${
host_arch
}
*/
${
bin
}
"
2>/dev/null
||
true
)
)
locations+
=(
"
${
line
}
"
)
echo
$(
(
ls
-t
"
${
locations
[@]
}
"
2>/dev/null
||
true
)
|
head
-1
)
done
< <
(
find
"
${
KUBE_ROOT
}
/bazel-bin/
${
srcdir
}
"
-type
f
-executable
\
-path
"*/
${
host_os
}
_
${
host_arch
}
*/
${
bin
}
"
2>/dev/null
||
true
)
(
ls
-t
"
${
locations
[@]
}
"
2>/dev/null
||
true
)
|
head
-1
}
}
function
print_error
()
{
function
print_error
()
{
...
...
hack/.shellcheck_failures
View file @
855c291c
./build/lib/release.sh
./build/lib/release.sh
./cluster/addons/addon-manager/kube-addons.sh
./cluster/addons/addon-manager/kube-addons.sh
./cluster/addons/fluentd-elasticsearch/es-image/run.sh
./cluster/addons/fluentd-elasticsearch/es-image/run.sh
./cluster/clientbin.sh
./cluster/common.sh
./cluster/common.sh
./cluster/gce/config-common.sh
./cluster/gce/config-common.sh
./cluster/gce/config-default.sh
./cluster/gce/config-default.sh
...
...
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