diff --git a/cmd/loop/instantout.go b/cmd/loop/instantout.go index 59647c7b..9783f005 100644 --- a/cmd/loop/instantout.go +++ b/cmd/loop/instantout.go @@ -137,7 +137,7 @@ func instantOut(ctx context.Context, cmd *cli.Command) error { if err != nil { return err } - if idx < 0 { + if idx <= 0 { return fmt.Errorf("invalid index %v", idx) }