Skip to content

Commit

Permalink
fix: check flag really do it
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5459 committed Jul 31, 2023
1 parent 6b93d6f commit c775ed2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ var utilSealerSectorsAbortCmd = &cli.Command{
if count := cctx.Args().Len(); count < 2 {
return fmt.Errorf("both miner actor id & sector number are required, only %d args provided", count)
}

if !cctx.Bool("really-do-it") {
fmt.Println("If you know what you're doing, Pass --really-do-it to actually execute this action")
return nil
}
miner, err := ShouldActor(cctx.Args().Get(0), true)
if err != nil {
return fmt.Errorf("invalid miner actor id: %w", err)
Expand Down

0 comments on commit c775ed2

Please sign in to comment.