浏览代码

fix: clean relative path of packing

Yeuoly 8 月之前
父节点
当前提交
5fa8950077
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cmd/commandline/plugin.go

+ 1 - 1
cmd/commandline/plugin.go

@@ -24,7 +24,7 @@ var (
 		Long:  "Package plugins",
 		Args:  cobra.ExactArgs(1),
 		Run: func(cmd *cobra.Command, args []string) {
-			inputPath := args[0]
+			inputPath := filepath.Clean(args[0])
 
 			// using filename of input_path as output_path if not specified
 			outputPath := ""