Fix: Process exited with status 1

通道还没建立起来就运行,会报错
pull/135/head
hzlzh 2025-05-25 20:37:25 +08:00
parent d3f9b05335
commit 184d0ff4cb
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ func writeMultipleFilesViaSSH(config SSHConfig, files []RemoteFile, preCmd, post
cmd := script.String()
if err := session.Run(cmd); err != nil {
if err := session.Start(cmd); err != nil {
return fmt.Errorf("运行出错: %v", err)
}