update output

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-05-10 21:26:31 +08:00
parent 1637772e0b
commit 88b5394dac
No known key found for this signature in database
GPG Key ID: 0F84B2110C500B1F

View File

@ -2,7 +2,6 @@ package main
import (
"fmt"
"log"
"strconv"
"strings"
"sync"
@ -131,12 +130,14 @@ func (p Plugin) Exec() error {
case <-finished:
case err := <-errChannel:
if err != nil {
log.Println("drone-ssh error: ", err)
fmt.Println("drone-ssh error: ", err)
return err
}
}
log.Println("Successfully executed commands to all host.")
fmt.Println("==========================================")
fmt.Println("Successfully executed commands to all host.")
fmt.Println("==========================================")
return nil
}