U add output

This commit is contained in:
zhenorzz 2023-02-28 15:34:47 +08:00
parent e0f09ff0f1
commit 8ee1795801

View File

@ -304,7 +304,7 @@ func (gsync Gsync) runAfterPullScript() (string, error) {
handler.Dir = srcPath
if output, err := handler.CombinedOutput(); err != nil {
return "", err
return string(output), err
} else {
_ = os.Remove(scriptFullName)
return string(output), nil