From 9a09af076f4dc9bedfb21c509665dd3461fbc07d Mon Sep 17 00:00:00 2001 From: zhenorzz Date: Fri, 16 Sep 2022 17:42:12 +0800 Subject: [PATCH] F command line --- service/transmitter/CustomTransmitter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/transmitter/CustomTransmitter.go b/service/transmitter/CustomTransmitter.go index 8cc1c8c..5d51f58 100644 --- a/service/transmitter/CustomTransmitter.go +++ b/service/transmitter/CustomTransmitter.go @@ -58,7 +58,7 @@ func (ct customTransmitter) Exec() (string, error) { if ct.Project.TransferOption == "" { return "", nil } - parts := strings.Fields(ct.String()) + parts, _ := utils.ParseCommandLine(ct.String()) cmd := exec.Command(parts[0], parts[1:]...) if output, err := cmd.CombinedOutput(); err != nil { return string(output), err