mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
fix: command line variable.
This commit is contained in:
parent
20a4793249
commit
6802b82a8d
2
main.go
2
main.go
@ -171,7 +171,7 @@ func run(c *cli.Context) error {
|
|||||||
Proxy: defaultConfig{
|
Proxy: defaultConfig{
|
||||||
Key: c.String("proxy.ssh-key"),
|
Key: c.String("proxy.ssh-key"),
|
||||||
KeyPath: c.String("proxy.key-path"),
|
KeyPath: c.String("proxy.key-path"),
|
||||||
User: c.String("proxy.user"),
|
User: c.String("proxy.username"),
|
||||||
Password: c.String("proxy.password"),
|
Password: c.String("proxy.password"),
|
||||||
Server: c.String("proxy.host"),
|
Server: c.String("proxy.host"),
|
||||||
Port: c.String("proxy.port"),
|
Port: c.String("proxy.port"),
|
||||||
|
@ -96,14 +96,14 @@ func (p Plugin) Exec() error {
|
|||||||
p.log(host, "errors:", errStr)
|
p.log(host, "errors:", errStr)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !isTimeout {
|
|
||||||
errChannel <- fmt.Errorf(commandTimeOut)
|
|
||||||
}
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errChannel <- err
|
errChannel <- err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !isTimeout {
|
||||||
|
errChannel <- fmt.Errorf(commandTimeOut)
|
||||||
|
}
|
||||||
|
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}(host)
|
}(host)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user