提交 5c592c92 编写于 作者: LinuxSuRen's avatar LinuxSuRen

Fix the issues of find out plugin name

上级 d811a997
......@@ -45,7 +45,7 @@ var pluginCmd = &cobra.Command{
path, _ := os.Getwd()
dirName := filepath.Base(path)
dirName = strings.Replace(dirName, "-plugin", "", 0)
dirName = strings.Replace(dirName, "-plugin", "", -1)
path += fmt.Sprintf("/target/%s.hpi", dirName)
fmt.Println("target path", path)
extraParams := map[string]string{}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册