mirror of
https://github.com/appleboy/drone-scp.git
synced 2026-06-04 18:23:59 +08:00
fix: quick fix. (#63)
This commit is contained in:
@@ -161,7 +161,7 @@ func (p *Plugin) Exec() error {
|
||||
return errors.New("missing ssh config (Host, Username)")
|
||||
}
|
||||
|
||||
if len(p.Config.Password) != 0 || len(p.Config.Key) != 0 {
|
||||
if len(p.Config.Password) != 0 && len(p.Config.Key) != 0 {
|
||||
return errors.New("can't set password and key at the same time")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user