if $NO_PING then skip ping

main
Bel LaPointe 2025-10-03 21:06:18 -06:00
parent 081953776b
commit 7a03d9b376
1 changed files with 4 additions and 2 deletions

View File

@ -27,9 +27,11 @@ func main() {
}
defer client.Close()
if os.Getenv("NO_PING") == "" {
if err := client.Ping(ctx).Err(); err != nil {
panic(err)
}
}
foo := []any{}
for _, arg := range os.Args[2:] {