diff --git a/internal/deployer/ssh.go b/internal/deployer/ssh.go index b028fd61..f6757ec9 100644 --- a/internal/deployer/ssh.go +++ b/internal/deployer/ssh.go @@ -71,7 +71,7 @@ func (s *ssh) Deploy(ctx context.Context) error { // 执行前置命令 if access.PreCommand != "" { - err, stdout, stderr := s.sshExecCommand(client, access.Command) + err, stdout, stderr := s.sshExecCommand(client, access.PreCommand) if err != nil { return fmt.Errorf("failed to run pre-command: %w, stdout: %s, stderr: %s", err, stdout, stderr) }