Skip to content

Commit

Permalink
fix: windows path
Browse files Browse the repository at this point in the history
  • Loading branch information
zodial committed Mar 20, 2023
1 parent 8dd9828 commit f28c342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/commands/protoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (ProtocCommand) Execute(input command.Input) {
var outTemp, outPath string
out := input.GetOption("go_out")
out = strings.Replace(out, "@root", root, 1)
if outIndex := strings.Index(out, ":"); outIndex != -1 {
if outIndex := strings.Index(out, ":"); outIndex != -1 && string(out[outIndex+1]) != "\\" {
outPath = out[outIndex+1:]
outPath, _ = filepath.Abs(outPath + "/../temp")
_ = os.RemoveAll(outPath)
Expand Down

0 comments on commit f28c342

Please sign in to comment.