mirror of
https://github.com/usual2970/certimate.git
synced 2025-07-20 18:07:59 +00:00
Fix the issue with SSH deployment failing to upload the certificate.
This commit is contained in:
@@ -99,7 +99,7 @@ func (s *ssh) upload(client *sshPkg.Client, content, path string) error {
|
||||
}
|
||||
defer sftpCli.Close()
|
||||
|
||||
if err := sftpCli.MkdirAll(xpath.Base(path)); err != nil {
|
||||
if err := sftpCli.MkdirAll(xpath.Dir(path)); err != nil {
|
||||
return fmt.Errorf("failed to create remote directory: %w", err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user