mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-12 18:42:48 +08:00
fixed botched if statement
This commit is contained in:
parent
eb3de49441
commit
6beb0be136
2
main.go
2
main.go
@ -34,7 +34,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
if v.Sleep != 0 && i > v.Host.Len()-1 {
|
if v.Sleep != 0 && i != v.Host.Len()-1 {
|
||||||
fmt.Printf("$ sleep %d\n", v.Sleep)
|
fmt.Printf("$ sleep %d\n", v.Sleep)
|
||||||
time.Sleep(time.Duration(v.Sleep) * time.Second)
|
time.Sleep(time.Duration(v.Sleep) * time.Second)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user