Skip to content

Commit

Permalink
Merge pull request labring#616 from oldthreefeng/develop
Browse files Browse the repository at this point in the history
fix decode cmd miss TokenCaCertHash
  • Loading branch information
cuisongliu authored Apr 9, 2021
2 parents 3094c13 + 85a596d commit 1d97f9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install/sealos.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ func decodeJoinCmd(cmd string) {
stringSlice := strings.Split(cmd, " ")

for i, r := range stringSlice {
r = strings.ReplaceAll(r, "\t", "")
r = strings.ReplaceAll(r, "\n", "")
r = strings.ReplaceAll(r, "\\", "")
switch r {
case "--token":
JoinToken = stringSlice[i+1]
Expand Down

0 comments on commit 1d97f9b

Please sign in to comment.