mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
remove empty string output (#198)
This commit is contained in:
parent
b937d64a58
commit
307409651f
@ -127,9 +127,13 @@ func (p Plugin) exec(host string, wg *sync.WaitGroup, errChannel chan error) {
|
||||
case isTimeout = <-doneChan:
|
||||
break loop
|
||||
case outline := <-stdoutChan:
|
||||
p.log(host, "out:", outline)
|
||||
if outline != "" {
|
||||
p.log(host, "out:", outline)
|
||||
}
|
||||
case errline := <-stderrChan:
|
||||
p.log(host, "err:", errline)
|
||||
if errline != "" {
|
||||
p.log(host, "err:", errline)
|
||||
}
|
||||
case err = <-errChan:
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user