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
b38be58a
Commit
b38be58a
authored
May 18, 2017
by
yupengzte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ineffectual assignment to baseCommand, delete it
Signed-off-by:
yupengzte
<
yu.peng36@zte.com.cn
>
parent
dddc6b86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
hyperkube.go
cmd/hyperkube/hyperkube.go
+1
-3
No files found.
cmd/hyperkube/hyperkube.go
View file @
b38be58a
...
...
@@ -119,8 +119,7 @@ func (hk *HyperKube) Run(args []string) error {
// If we are called directly, parse all flags up to the first real
// argument. That should be the server to run.
command
:=
args
[
0
]
baseCommand
:=
path
.
Base
(
command
)
serverName
:=
baseCommand
serverName
:=
path
.
Base
(
command
)
args
=
args
[
1
:
]
if
serverName
==
hk
.
Name
{
...
...
@@ -144,7 +143,6 @@ func (hk *HyperKube) Run(args []string) error {
args
=
baseFlags
.
Args
()
if
len
(
args
)
>
0
&&
len
(
args
[
0
])
>
0
{
serverName
=
args
[
0
]
baseCommand
=
baseCommand
+
" "
+
serverName
args
=
args
[
1
:
]
}
else
{
err
=
errors
.
New
(
"no server specified"
)
...
...
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