Skip to content

Commit

Permalink
Merge pull request #854 from ipfs-force-community/fix/0x5459/check-fl…
Browse files Browse the repository at this point in the history
…ag-really-do-it

fix: check flag really do it
  • Loading branch information
LinZexiao authored Jul 31, 2023
2 parents 6b93d6f + c775ed2 commit 3cab73a
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 3cab73a

Please sign in to comment.