mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 05:29:51 +00:00
fix: wrong pre command reference
This commit is contained in:
parent
e7e2e4786d
commit
7a48101015
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user