mirror of
https://github.com/appleboy/drone-ssh.git
synced 2026-02-05 09:10:09 +08:00
fixed botched if statement
This commit is contained in:
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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user