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
aacab2ee
Commit
aacab2ee
authored
Apr 26, 2019
by
SataQiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix shellcheck failures of cluster/clientbin.sh
parent
b3847120
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 @
aacab2ee
...
...
@@ -65,12 +65,6 @@ case "$(uname -m)" in
;;
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
()
{
bin
=
"
${
1
:-}
"
srcdir
=
"
${
2
:-}
"
...
...
@@ -93,9 +87,12 @@ function get_bin() {
# The bazel go rules place binaries in subtrees like
# "bazel-bin/source/path/linux_amd64_pure_stripped/binaryname", so make sure
# the platform name is matched in the path.
locations+
=(
$(
find
"
${
KUBE_ROOT
}
/bazel-bin/
${
srcdir
}
"
-type
f
-executable
\
-path
"*/
${
host_os
}
_
${
host_arch
}
*/
${
bin
}
"
2>/dev/null
||
true
)
)
echo
$(
(
ls
-t
"
${
locations
[@]
}
"
2>/dev/null
||
true
)
|
head
-1
)
while
IFS
=
$'
\n
'
read
-r
line
;
do
locations+
=(
"
${
line
}
"
)
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
()
{
...
...
hack/.shellcheck_failures
View file @
aacab2ee
./build/lib/release.sh
./cluster/addons/addon-manager/kube-addons.sh
./cluster/addons/fluentd-elasticsearch/es-image/run.sh
./cluster/clientbin.sh
./cluster/common.sh
./cluster/gce/config-common.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