Skip to content

Commit

Permalink
# 决绝路径取消拼接,防止出错。 (#654)
Browse files Browse the repository at this point in the history
Co-authored-by: fuliang <123lk>
  • Loading branch information
leeonfu authored Aug 4, 2021
1 parent a9a99a5 commit e79a119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ func GetRemoteHostName(hostIP string) string {
//获取sealos绝对路径
func FetchSealosAbsPath() string {
ex, _ := os.Executable()
exPath := filepath.Dir(ex)
return exPath + string(os.PathSeparator) + os.Args[0]
exPath, _ := filepath.Abs(ex)
return exPath
}

func CompressTar(srcDirPath string, destFilePath string) error {
Expand Down

0 comments on commit e79a119

Please sign in to comment.