mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 21:49:52 +00:00
Merge pull request #117 from sgpublic-forks/feat/pre_command
fix: wrong pre command reference
This commit is contained in:
commit
49fdf8213a
@ -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